:root {
  color-scheme: light;
  --bg: #f5fbfb;
  --surface: #ffffff;
  --ink: #133238;
  --muted: #637b7f;
  --line: #d8e8e8;
  --accent: #237f83;
  --notice: #fff8e8;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
  line-height: 1.75;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

main {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding:
    calc(28px + env(safe-area-inset-top, 0px))
    env(safe-area-inset-right, 0px)
    calc(56px + env(safe-area-inset-bottom, 0px))
    env(safe-area-inset-left, 0px);
}

header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 4px 0;
  font-size: 1.75rem;
  line-height: 1.3;
}

h2 {
  margin: 30px 0 8px;
  font-size: 1.08rem;
}

p,
ul,
dl {
  margin: 8px 0;
}

ul {
  padding-left: 1.4rem;
}

dt {
  margin-top: 14px;
  font-weight: 800;
}

dd {
  margin-left: 0;
}

a {
  color: var(--accent);
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

table {
  border-collapse: collapse;
}

.data-retention-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.data-retention-table {
  width: 100%;
  min-width: 660px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.data-retention-table th,
.data-retention-table td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-retention-table thead th {
  font-size: 0.82rem;
  color: var(--muted);
  background: #eef7f7;
}

.data-retention-table tbody tr:last-child th,
.data-retention-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-retention-table tbody th {
  width: 32%;
  font-weight: 800;
}

.data-retention-table td span {
  color: var(--muted);
  font-size: 0.82rem;
}

.brand {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.draft-notice {
  margin: 18px 0;
  padding: 12px 14px;
  background: var(--notice);
  border: 1px solid #ead9a6;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.page-nav a,
.report-form button {
  touch-action: manipulation;
}

.page-nav a:active {
  color: var(--ink);
  background: rgba(35, 127, 131, 0.1);
  border-color: rgba(35, 127, 131, 0.28);
  transform: translateY(1px) scale(0.98);
}

code {
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

.report-form {
  display: grid;
  gap: 14px;
}

.report-form label {
  display: grid;
  gap: 5px;
  font-weight: 800;
}

.report-form input,
.report-form select,
.report-form textarea,
.report-form button {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.report-form input,
.report-form select,
.report-form textarea {
  -webkit-user-select: text;
  user-select: text;
}

.report-form textarea {
  min-height: 140px;
  resize: vertical;
}

.report-form button {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.report-form button:not(:disabled):active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 2px 6px rgba(9, 44, 48, 0.18);
  transform: translateY(1px) scale(0.98);
}

.report-form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.report-status {
  min-height: 28px;
  font-weight: 800;
}
