@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap");

:root {
  --brand: #50c878;
  --brand-dark: #187443;
  --brand-soft: #eaf8ef;
  --navy: #17213a;
  --navy-deep: #0f172a;
  --ink: #253048;
  --muted: #5c687c;
  --line: #dce5df;
  --surface: #ffffff;
  --page: #f5f8f6;
  --focus: #e7b008;
  --radius: 14px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #105b34;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy-deep);
  background: #ffffff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header,
.legal-hero {
  color: #ffffff;
  background: var(--navy-deep);
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-nav,
.hero-inner,
.legal-layout,
.legal-footer-inner {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
}

.nav-links a {
  color: #d9e2ef;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #ffffff;
}

.nav-links .support-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--navy-deep);
  background: var(--brand);
}

.nav-links .support-link:hover {
  color: var(--navy-deep);
  background: #69d68c;
}

.legal-hero {
  border-bottom: 4px solid var(--brand);
}

.hero-inner {
  padding-block: clamp(48px, 8vw, 88px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: #aebbd0;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #cbd5e5;
}

.hero-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.65rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 64ch;
  margin: 22px 0 0;
  color: #cbd5e5;
  font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.policy-meta {
  flex: 0 0 auto;
  min-width: 210px;
  padding: 16px 0 2px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e5;
  font-size: 0.94rem;
}

.policy-meta strong,
.policy-meta span {
  display: block;
}

.policy-meta strong {
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 1rem;
}

.policy-meta span + strong {
  margin-top: 12px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 780px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(44px, 7vw, 92px);
  padding-block: clamp(46px, 7vw, 82px) 96px;
}

.table-of-contents {
  position: sticky;
  top: 24px;
  padding-top: 6px;
}

.table-of-contents strong {
  display: block;
  margin-bottom: 13px;
  color: var(--navy);
  font-size: 1rem;
}

.table-of-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.table-of-contents li + li {
  margin-top: 7px;
}

.table-of-contents a {
  display: block;
  padding-block: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.table-of-contents a:hover {
  color: var(--brand-dark);
}

.legal-document {
  min-width: 0;
}

.legal-document > p,
.legal-section p,
.legal-section li,
.data-row dd {
  max-width: 72ch;
  text-wrap: pretty;
}

.legal-intro {
  margin: 0 0 32px;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 600;
}

.policy-summary,
.important-note {
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.policy-summary {
  margin-bottom: 42px;
  padding: clamp(22px, 4vw, 32px);
}

.policy-summary h2,
.important-note strong {
  color: #105b34;
}

.policy-summary h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.policy-summary p,
.policy-summary ul {
  margin-top: 0;
  margin-bottom: 0;
}

.policy-summary ul {
  padding-left: 1.2rem;
}

.policy-summary li + li {
  margin-top: 7px;
}

.legal-section {
  padding-block: 8px 36px;
  scroll-margin-top: 24px;
}

.legal-section + .legal-section {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(1.48rem, 3.2vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-number {
  display: inline-block;
  min-width: 1.7em;
  color: var(--brand-dark);
}

.legal-section p {
  margin: 0 0 15px;
}

.legal-section ul {
  margin: 14px 0 0;
  padding-left: 1.35rem;
}

.legal-section li + li {
  margin-top: 8px;
}

.important-note {
  margin: 22px 0;
  padding: 18px 20px;
}

.important-note p {
  margin: 4px 0 0;
}

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

.data-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.data-row dt {
  color: var(--navy);
  font-weight: 800;
}

.data-row dd {
  margin: 0;
}

code {
  padding: 0.1em 0.38em;
  border-radius: 5px;
  color: #0f5733;
  background: #e4f4e9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--brand-dark);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.contact-actions a:first-child {
  color: #ffffff;
  background: var(--brand-dark);
}

.contact-actions a:hover {
  color: #ffffff;
  background: #105b34;
}

.legal-footer {
  color: #cbd5e5;
  background: var(--navy-deep);
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 28px;
}

.legal-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: #e3eaf3;
}

@media (max-width: 820px) {
  .legal-nav {
    min-height: 64px;
  }

  .nav-links a:not(.support-link) {
    display: none;
  }

  .hero-heading {
    align-items: start;
    flex-direction: column;
    gap: 28px;
  }

  .policy-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
    gap: 2px 16px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .policy-meta strong,
  .policy-meta span {
    margin: 0 !important;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .table-of-contents {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .table-of-contents ol {
    columns: 2;
    column-gap: 28px;
  }

  .table-of-contents li {
    break-inside: avoid;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .legal-nav,
  .hero-inner,
  .legal-layout,
  .legal-footer-inner {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .support-link {
    font-size: 0.9rem;
  }

  .table-of-contents ol {
    columns: 1;
  }

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}

@media print {
  body {
    color: #000000;
    background: #ffffff;
    font-size: 11pt;
  }

  .skip-link,
  .legal-header,
  .table-of-contents,
  .legal-footer {
    display: none;
  }

  .legal-hero {
    color: #000000;
    background: #ffffff;
    border-bottom: 2px solid #000000;
  }

  .hero-inner,
  .legal-layout {
    width: 100%;
  }

  .hero-inner {
    padding-block: 24px;
  }

  .hero-copy h1,
  .policy-meta strong {
    color: #000000;
  }

  .hero-copy p,
  .policy-meta,
  .breadcrumb {
    color: #333333;
  }

  .legal-layout {
    display: block;
    padding-block: 28px;
  }

  .legal-section {
    break-inside: avoid;
  }
}
