:root {
  --forest: #164f43;
  --forest-dark: #0e382f;
  --mint: #dfeee7;
  --orange: #e8773f;
  --orange-soft: #fff0e6;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --ink: #142923;
  --muted: #60736d;
  --line: rgba(20, 79, 67, .14);
  --shadow: 0 24px 65px rgba(31, 54, 47, .1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 0, rgba(206, 236, 222, .72), transparent 29rem),
    radial-gradient(circle at 100% 18%, rgba(244, 170, 124, .2), transparent 25rem),
    var(--cream);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); }
:focus-visible { outline: 3px solid rgba(232, 119, 63, .55); outline-offset: 4px; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(20, 79, 67, .09);
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-grid; text-decoration: none; }
.brand img { display: block; width: 158px; height: auto; }
.brand span { margin: 2px 0 0 40px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #49625a; font-size: 13px; font-weight: 750; text-decoration: none; }
.nav-links .login { padding: 9px 14px; border-radius: 10px; color: white; background: var(--forest); }

.legal-hero { padding: 78px 0 50px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); line-height: 1.08; }
h1 { max-width: 820px; margin-top: 16px; font-size: clamp(42px, 7vw, 70px); letter-spacing: -.045em; overflow-wrap: anywhere; hyphens: auto; }
.legal-hero p { max-width: 760px; margin-top: 22px; color: var(--muted); font-size: 17px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.meta-row span { padding: 7px 10px; border-radius: 99px; color: var(--forest); background: var(--mint); font-size: 10px; font-weight: 800; }

.document-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; padding: 0 0 90px; }
.toc { position: sticky; top: 100px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 248, .76); }
.toc strong { display: block; margin-bottom: 11px; color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--forest); }

.legal-document { padding: clamp(27px, 5vw, 50px); border: 1px solid var(--line); border-radius: 23px; background: var(--paper); box-shadow: var(--shadow); }
.legal-document section + section { margin-top: 42px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-document h2 { font-size: clamp(25px, 4vw, 34px); letter-spacing: -.025em; }
.legal-document h3 { margin-top: 27px; font-family: var(--sans); font-size: 16px; line-height: 1.45; }
.legal-document p { margin: 13px 0 0; color: #4f655e; font-size: 14px; }
.legal-document ul, .legal-document ol { margin: 14px 0 0; padding-left: 22px; color: #4f655e; font-size: 14px; }
.legal-document li + li { margin-top: 8px; }
.legal-document strong { color: var(--ink); }
.legal-document address { margin-top: 14px; color: #4f655e; font-style: normal; }
.notice { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; color: #674b39; background: var(--orange-soft); font-size: 13px; }
.good-note { border-left-color: var(--forest); color: #355c50; background: #edf6f1; }
.provider-list { display: grid; gap: 12px; margin-top: 18px; }
.provider { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf9; }
.provider strong { display: block; }
.provider span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.contact-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.contact-card div { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf9; }
.contact-card small { display: block; color: var(--muted); }
.contact-card a { font-weight: 800; }

footer { padding: 30px 0 42px; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; }
.footer-row nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 18px; }
.footer-row a { color: var(--muted); text-decoration: none; }

@media (max-width: 780px) {
  .shell { width: min(100% - 32px, 1080px); }
  .nav { min-height: 66px; }
  .brand img { width: 134px; }
  .brand span { display: none; }
  .nav-links a:not(.login) { display: none; }
  .legal-hero { padding: 58px 0 38px; }
  h1 { font-size: clamp(37px, 11vw, 50px); }
  .document-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
  .footer-row nav { justify-content: flex-start; }
}

@media print {
  body { background: white; }
  .topbar, .toc, footer { display: none; }
  .legal-hero { padding: 0 0 20px; }
  .document-layout { display: block; padding: 0; }
  .legal-document { padding: 0; border: 0; box-shadow: none; }
}
