:root {
  --ink: #102a35;
  --muted: #526b74;
  --night: #061d29;
  --night-2: #0a3542;
  --teal: #087f82;
  --teal-dark: #06676a;
  --glow: #79f0cc;
  --glow-soft: #dffaf2;
  --sky-soft: #e8f6fa;
  --paper: #fff;
  --canvas: #f4f9fa;
  --sand: #fbf4e8;
  --line: #d7e6e9;
  --line-dark: #bfd4d8;
  --warning: #fff1ce;
  --warning-ink: #664714;
  --shadow: 0 22px 60px rgba(16, 56, 68, .10);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 16px/1.72 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #f1bb4e; outline-offset: 3px; }

.skip {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--night);
  font-weight: 800;
}
.skip:focus { transform: none; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { color: #fff; background: var(--night); }
.btn-dark:hover { background: #103746; }
.btn-primary { color: #063234; background: var(--glow); box-shadow: 0 13px 28px rgba(45, 218, 171, .17); }
.btn-primary:hover { background: #91f7da; }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: #aac7cc; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(215, 230, 233, .82);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(16px);
}
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 64% 34%, #b8ffe9 0 7%, transparent 8%), linear-gradient(145deg, #0f5963, #061d29);
}
.brand-mark::after {
  position: absolute;
  right: -7px;
  bottom: 5px;
  width: 42px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: rgba(121, 240, 204, .45);
  transform: rotate(-9deg);
  filter: blur(3px);
}
.brand small { display: block; margin-top: -3px; color: #66818a; font-size: .61rem; font-weight: 700; letter-spacing: .05em; }
.desktop-nav { display: flex; align-items: center; gap: 27px; }
.desktop-nav > a:not(.btn) { color: #39545e; text-decoration: none; font-size: .85rem; font-weight: 700; }
.desktop-nav > a:not(.btn):hover { color: var(--teal-dark); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform .18s, opacity .18s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-nav { display: none; }
.reading-progress { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; overflow: hidden; pointer-events: none; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), var(--glow)); }

.legal-hero {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 74px 0 78px;
  color: #fff;
  background: linear-gradient(90deg, rgba(3, 18, 28, .96) 0%, rgba(3, 26, 36, .82) 57%, rgba(3, 25, 35, .45) 100%), url("../images/moon-calendar-hero.webp") center 57% / cover no-repeat;
}
.legal-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  content: "";
  background: linear-gradient(transparent, rgba(4, 23, 32, .34));
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 230px; gap: 70px; align-items: center; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; color: #b8cdd2; font-size: .69rem; font-weight: 700; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs span::before { margin-right: 8px; content: "/"; color: #719098; }
.legal-hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--glow); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.legal-hero .eyebrow::before { width: 22px; height: 2px; content: ""; background: currentColor; }
.legal-hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.9rem, 6vw, 5rem); line-height: .99; letter-spacing: -.06em; }
.legal-hero .hero-copy { max-width: 730px; margin: 21px 0 0; color: #dce9eb; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.legal-hero .btn-ghost { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.legal-hero .btn-ghost:hover { background: rgba(255, 255, 255, .17); }
.policy-icon {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 48px;
  background: rgba(4, 25, 35, .58);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .25);
  backdrop-filter: blur(14px);
}
.policy-icon svg { width: 78px; height: 78px; fill: none; stroke: var(--glow); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.policy-facts { position: relative; z-index: 4; margin-top: -29px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 46px rgba(19, 57, 68, .10); }
.fact { padding: 20px 23px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact span { display: block; margin-bottom: 5px; color: #718991; font-size: .63rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.fact strong { display: block; font-size: .86rem; line-height: 1.45; }

.mobile-toc { display: none; margin: 28px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mobile-toc summary { position: relative; padding: 15px 47px 15px 17px; cursor: pointer; list-style: none; font-size: .79rem; font-weight: 800; }
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc summary::after { position: absolute; top: 50%; right: 17px; content: "+"; color: var(--teal); font-size: 1.2rem; transform: translateY(-50%); }
.mobile-toc[open] summary::after { content: "−"; }
.mobile-toc nav { display: grid; padding: 0 17px 14px; }
.mobile-toc a { padding: 8px 0; border-top: 1px solid var(--line); color: #46626b; text-decoration: none; font-size: .72rem; font-weight: 700; }

.legal-section { padding: 78px 0 96px; }
.legal-layout { display: grid; grid-template-columns: minmax(230px, .3fr) minmax(0, .7fr); gap: 42px; align-items: start; }
.policy-sidebar { position: sticky; top: 116px; display: grid; gap: 15px; }
.side-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.side-label { margin: 0 0 12px; color: #718991; font-size: .61rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.policy-links, .toc-links { display: grid; gap: 5px; }
.policy-links a, .toc-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 9px; color: #48646d; text-decoration: none; font-size: .7rem; font-weight: 700; line-height: 1.35; }
.policy-links a::after { content: "→"; color: #8aa1a7; }
.policy-links a:hover, .toc-links a:hover { color: var(--teal-dark); background: #eef7f7; }
.policy-links a[aria-current="page"] { color: #064c50; background: var(--glow-soft); }
.toc-links a { position: relative; justify-content: flex-start; padding-left: 22px; }
.toc-links a::before { position: absolute; left: 8px; width: 5px; height: 5px; border-radius: 50%; content: ""; background: #b9cdd1; }
.toc-links a.active { color: var(--teal-dark); background: #eef7f7; }
.toc-links a.active::before { background: var(--teal); box-shadow: 0 0 0 3px rgba(8, 127, 130, .1); }
.side-note { margin: 0; color: var(--muted); font-size: .66rem; }
.side-note a { color: var(--teal-dark); font-weight: 800; }

.legal-content { min-width: 0; }
.policy-intro { padding: 27px; border: 1px solid #b8ddd7; border-radius: var(--radius-lg); background: linear-gradient(135deg, #effbf8, #fff); box-shadow: 0 14px 36px rgba(18, 91, 87, .06); }
.policy-intro .label { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #075a4d; background: var(--glow-soft); font-size: .61rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.policy-intro h2 { margin: 13px 0 7px; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.035em; }
.policy-intro p { margin: 0; color: #45636b; font-size: .85rem; }
.key-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 19px; }
.key-point { padding: 13px; border: 1px solid rgba(8, 127, 130, .13); border-radius: 12px; background: rgba(255, 255, 255, .7); }
.key-point strong { display: block; font-size: .69rem; }
.key-point span { display: block; margin-top: 4px; color: #617982; font-size: .61rem; line-height: 1.45; }

.legal-card { margin-top: 15px; padding: clamp(23px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.legal-card:target { border-color: #83c9c3; box-shadow: 0 0 0 4px rgba(8, 127, 130, .07); }
.section-number { display: inline-grid; width: 36px; height: 36px; place-items: center; margin-bottom: 20px; border-radius: 11px; color: #06494d; background: var(--glow-soft); font-size: .65rem; font-weight: 800; }
.legal-card h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.75rem); line-height: 1.18; letter-spacing: -.035em; }
.legal-card h3 { margin: 25px 0 7px; font-size: .92rem; line-height: 1.35; }
.legal-card p { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.legal-card ul, .legal-card ol { display: grid; gap: 8px; margin: 15px 0 0; padding-left: 20px; color: #49656e; font-size: .76rem; }
.legal-card li::marker { color: var(--teal); font-weight: 800; }
.legal-card a { color: var(--teal-dark); font-weight: 750; text-underline-offset: 3px; }
.legal-card a:hover { text-decoration-thickness: 2px; }
.notice { margin-top: 19px; padding: 15px 17px; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; color: #3f5e66; background: #eaf7f6; font-size: .73rem; }
.notice strong { color: var(--ink); }
.notice.warning { border-left-color: #c9942e; color: var(--warning-ink); background: var(--warning); }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.definition { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfc; }
.definition strong { display: block; font-size: .7rem; }
.definition span { display: block; margin-top: 4px; color: var(--muted); font-size: .64rem; line-height: 1.5; }

.policy-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; }
.policy-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .68rem; }
.policy-table th, .policy-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table tr:last-child td { border-bottom: 0; }
.policy-table th { color: #3c5861; background: #eff6f7; font-size: .59rem; letter-spacing: .06em; text-transform: uppercase; }
.policy-table td { color: #526b74; }
.policy-table td strong { color: var(--ink); }

.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 15px; padding: 28px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, #082431, #0b3b47); box-shadow: var(--shadow); }
.contact-card h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.contact-card p { max-width: 620px; margin: 7px 0 0; color: #bed4d8; font-size: .75rem; }
.contact-card .btn { flex: 0 0 auto; }

.related-policies { padding: 70px 0; border-top: 1px solid var(--line); background: #fff; }
.related-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.related-head span { color: var(--teal-dark); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.related-head h2 { max-width: 620px; margin: 8px 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.045em; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 31px; }
.policy-tile { min-height: 168px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: transform .18s, border-color .18s, box-shadow .18s; }
.policy-tile:hover { transform: translateY(-4px); border-color: #b8d1d5; box-shadow: 0 16px 34px rgba(19, 57, 68, .08); }
.policy-tile small { color: var(--teal); font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.policy-tile strong { margin-top: auto; font-size: .94rem; }
.policy-tile span { margin-top: 4px; color: var(--muted); font-size: .67rem; line-height: 1.5; }

.site-footer { padding: 58px 0 27px; color: #c6d6da; background: #041821; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr .9fr; gap: 50px; }
.site-footer .brand { color: #fff; }
.footer-brand p { max-width: 340px; margin: 16px 0 0; color: #8fa8ae; font-size: .72rem; }
.footer-title { margin: 4px 0 15px; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin: 8px 0; color: #a9c0c5; text-decoration: none; font-size: .71rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; margin-top: 43px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .09); color: #78939a; font-size: .64rem; }

@media (max-width: 1060px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { position: fixed; z-index: 99; inset: 76px 0 auto; display: grid; max-height: 0; overflow: hidden; background: #fff; opacity: 0; pointer-events: none; transition: max-height .22s, opacity .18s; box-shadow: 0 20px 30px rgba(19, 57, 68, .12); }
  .mobile-nav.open { max-height: 520px; padding: 12px 20px 24px; opacity: 1; pointer-events: auto; }
  .mobile-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .86rem; font-weight: 750; }
  .mobile-nav .btn { margin-top: 11px; color: #063234; }
  .hero-grid { grid-template-columns: 1fr 170px; gap: 40px; }
  .policy-icon { width: 150px; height: 150px; border-radius: 38px; }
  .policy-icon svg { width: 62px; height: 62px; }
  .legal-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 780px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .legal-hero { min-height: 380px; padding: 61px 0 67px; background-position: 61% center; }
  .hero-grid { grid-template-columns: 1fr; }
  .policy-icon { display: none; }
  .legal-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .legal-hero .hero-copy { font-size: .94rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-top: 1px solid var(--line); border-left: 0; }
  .mobile-toc { display: block; }
  .legal-section { padding: 35px 0 69px; }
  .legal-layout { grid-template-columns: 1fr; }
  .policy-sidebar { display: none; }
  .policy-intro { padding: 22px; }
  .key-points { grid-template-columns: 1fr; }
  .legal-card { padding: 23px 20px; }
  .definition-grid { grid-template-columns: 1fr; }
  .policy-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table td { display: block; width: 100%; }
  .policy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .policy-table tr { margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .policy-table td { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 11px 13px; }
  .policy-table td::before { content: attr(data-label); color: #718991; font-size: .56rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .btn { width: 100%; }
  .related-head { display: block; }
  .policy-grid { grid-template-columns: 1fr; }
  .policy-tile { min-height: 145px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .brand small { display: none; }
  .legal-hero { background-position: 65% center; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .policy-table td { grid-template-columns: 1fr; gap: 3px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  @page { margin: 18mm; }
  body { color: #000; background: #fff; font: 10.5pt/1.55 Georgia, serif; }
  .site-header, .policy-facts, .policy-sidebar, .mobile-toc, .related-policies, .site-footer, .hero-actions, .policy-icon { display: none !important; }
  .legal-hero { min-height: 0; padding: 0 0 16mm; color: #000; background: none; }
  .legal-hero .eyebrow, .legal-hero .hero-copy, .breadcrumbs { color: #333; }
  .legal-hero h1 { font-size: 28pt; }
  .legal-section { padding: 0; }
  .legal-layout { display: block; }
  .policy-intro, .legal-card, .contact-card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; color: #000; background: #fff; }
  .contact-card p { color: #333; }
  .legal-card a { color: #000; }
}

