:root {
  --bg: #f7f3ea;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --ink: #20293a;
  --muted: #667085;
  --line: #e8ddca;
  --brand: #1f5f8b;
  --brand-dark: #173f62;
  --accent: #c59746;
  --accent-soft: #f6ead2;
  --shadow: 0 24px 60px rgba(31, 51, 77, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(197, 151, 70, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(31, 95, 139, 0.16), transparent 32rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.72;
  word-break: normal;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(32, 41, 58, 0.024) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 41, 58, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 65%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 4px;
  background: rgba(23, 63, 98, 0.08);
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transition: width .12s linear;
}

.site-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 22px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 28px rgba(31, 95, 139, 0.25);
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
  letter-spacing: .01em;
}

.brand em {
  font-style: normal;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link,
.print-button,
.copy-button {
  border: 1px solid rgba(31, 95, 139, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ghost-link:hover,
.print-button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 51, 77, 0.1);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(23, 63, 98, 0.94), rgba(31, 95, 139, 0.88)),
    linear-gradient(45deg, rgba(197,151,70,.25), transparent);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 34px rgba(255,255,255,.035);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero-card .eyebrow {
  color: #f4cd83;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  letter-spacing: -0.055em;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.policy-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 0;
}

.policy-meta div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.policy-meta dt {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  margin-bottom: 5px;
}

.policy-meta dd {
  margin: 0;
  font-weight: 800;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 22px 76px;
}

.toc {
  position: sticky;
  top: 22px;
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 36px rgba(31, 51, 77, 0.08);
  backdrop-filter: blur(10px);
}

.toc strong {
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.toc a {
  display: block;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  transition: color .18s ease, background .18s ease;
}

.toc a:hover,
.toc a.active {
  color: var(--brand-dark);
  background: var(--accent-soft);
}

.policy-content {
  min-width: 0;
}

.section-card {
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 46px rgba(31, 51, 77, 0.07);
}

.section-card h2 {
  color: var(--brand-dark);
  font-size: clamp(1.38rem, 2.6vw, 2rem);
  letter-spacing: -0.035em;
}

.section-card h3 {
  color: #24364a;
  font-size: 1.04rem;
}

.section-card p {
  color: #475467;
  margin: 14px 0 0;
}

.summary-grid,
.choice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.summary-grid article,
.choice-cards article {
  padding: 20px;
  border: 1px solid #eadfcb;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #fffaf1);
}

.summary-grid article p,
.choice-cards article p {
  margin-top: 8px;
  font-size: .96rem;
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

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

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid #efe5d4;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--brand-dark);
  background: #fbf2e2;
  font-size: .94rem;
}

td {
  color: #475467;
  font-size: .95rem;
}

tr:last-child td {
  border-bottom: 0;
}

.permission-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid #eadfcb;
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 17px 20px;
  color: var(--brand-dark);
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 900;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 20px 18px;
}

.clean-list,
.timeline-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
  color: #475467;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.notice-box,
.agency-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #f3f8fb;
  border: 1px solid #d7e8f2;
}

.notice-box strong,
.agency-box h3 {
  color: var(--brand-dark);
}

.notice-box p {
  margin-top: 6px;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #eadfcb;
  border-radius: var(--radius-lg);
  background: #fff;
}

.timeline-list strong {
  color: var(--brand-dark);
}

.timeline-list span {
  color: #475467;
}

.contact-card address {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid #eadfcb;
  background: #fffaf1;
  font-style: normal;
}

.contact-card address a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.copy-button {
  margin-top: 14px;
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.agency-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #475467;
}

.agency-box li + li {
  margin-top: 8px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-dark);
  box-shadow: 0 12px 24px rgba(31, 51, 77, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-footer {
  padding: 28px 22px 44px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(32, 41, 58, 0.08);
}

.site-footer p {
  margin: 4px 0;
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-hero,
  .layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ghost-link,
  .print-button,
  .copy-button {
    padding: 9px 12px;
    font-size: .92rem;
  }

  .hero-card {
    border-radius: 22px;
  }

  .policy-meta,
  .summary-grid,
  .choice-cards,
  .timeline-list li {
    grid-template-columns: 1fr;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .section-card {
    border-radius: 22px;
  }

  body {
    word-break: normal;
  }
}

@media print {
  .page-progress,
  .topbar-actions,
  .toc,
  .back-to-top {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-hero,
  .layout {
    max-width: none;
    padding: 0;
  }

  .hero-card,
  .section-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  .layout {
    display: block;
  }
}

