:root {
  color-scheme: light;
  --ink: #17222c;
  --muted: #61707c;
  --line: #d4dde4;
  --surface: #ffffff;
  --page: #f3f6f8;
  --primary: #087443;
  --primary-dark: #075f38;
  --link: #1769aa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: var(--link); }

.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-header-inner {
  width: min(100% - 32px, 1040px);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.legal-header span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.legal-main {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 34px 0 52px;
}

.page-title {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.lead {
  max-width: 800px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.policy-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.operator-list { background: var(--surface); }

.operator-row {
  min-height: 180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
}

.operator-row h2 {
  margin: 0 0 9px;
  font-size: 22px;
}

.operator-row p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.operator-station {
  color: var(--primary) !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.primary-button { color: white; background: var(--primary); }
.primary-button:hover { border-color: var(--primary-dark); background: var(--primary-dark); }
.secondary-button { color: var(--primary); background: white; }
.secondary-button:hover { border-color: var(--primary-dark); color: var(--primary-dark); }

.legal-note {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.legal-note h2,
.policy-document section h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.25;
}

.legal-note p,
.policy-document section p,
.policy-document li {
  font-size: 16px;
  line-height: 1.6;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 26px;
}

.text-link {
  color: var(--link);
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.operator-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.operator-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: white;
  font-weight: 700;
  text-decoration: none;
}

.operator-tabs a.active {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
}

.contents {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-left: 4px solid var(--primary);
  background: #eaf4ef;
}

.contents strong { font-size: 17px; }

.contents ol {
  columns: 2;
  margin: 12px 0 0;
  padding-left: 22px;
}

.contents li {
  margin: 4px 24px 4px 0;
  break-inside: avoid;
  font-size: 14px;
  line-height: 1.45;
}

.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; }

.policy-document section {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 12px;
}

.policy-document section p { margin: 10px 0 0; }

.policy-document section ol {
  margin: 12px 0 0;
  padding-left: 24px;
}

.policy-document section li { margin: 6px 0; }

.numbered-clause,
.section-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.numbered-clause strong,
.section-list strong {
  white-space: nowrap;
}

.section-list {
  padding-left: 0 !important;
  list-style: none;
}

.section-list li {
  font-size: 16px;
  line-height: 1.6;
}

.table-scroll {
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th { background: #e9eff4; font-weight: 800; }

.contact-list {
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
}

.contact-list div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt { color: var(--muted); font-weight: 700; }
.contact-list dd { margin: 0; }

@media (max-width: 720px) {
  .legal-main { width: min(100% - 22px, 1040px); padding-top: 24px; }
  h1 { font-size: 30px; }
  .lead { font-size: 15px; }
  .operator-row { grid-template-columns: 1fr; gap: 18px; padding: 24px 16px; }
  .operator-row .primary-button { width: 100%; }
  .contents ol { columns: 1; }
  .operator-tabs a { flex: 1; justify-content: center; text-align: center; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .page-actions { align-items: stretch; flex-direction: column; }
  .page-actions .secondary-button { width: 100%; }
}

@media (max-width: 480px) {
  .legal-header-inner {
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
  .legal-header span { font-size: 12px; text-align: left; }
  .operator-tabs { flex-direction: column; }
  .policy-document section p,
  .policy-document li { font-size: 15px; }
}
