/* The Privacy Policy and Terms of Service. The header and footer are copies of
   the home page's (index.html keeps its CSS inline), so a change to either one
   there belongs here too. */
:root {
  color-scheme: light;
  --bg: #F5F8FB;
  --surface: #FFFFFF;
  --ink: #0B1A2C;
  --text: #142033;
  --body: #2A3647;
  --muted: #5A6577;
  --faint: #8A94A4;
  --line: rgba(15, 34, 54, 0.10);
  --line-2: rgba(15, 34, 54, 0.16);
  --accent: #0E9F90;
  --accent-soft: #E3F8F5;
  --lagoon-deep: linear-gradient(135deg, #0A7F74 0%, #2563EB 100%);
  --shadow: 0 1px 2px rgba(15, 34, 54, 0.06), 0 12px 32px -12px rgba(15, 34, 54, 0.18);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons (as on the home page) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { color: #fff; background: var(--lagoon-deep); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25); transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { flex: none; }
.lbl { display: inline-flex; align-items: center; gap: 10px; }
.on-other, .not-mac .on-mac { display: none !important; }
.not-mac .on-other { display: inline !important; }
.not-mac .lbl.on-other { display: inline-flex !important; }

/* ---------- Header (as on the home page) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 12px rgba(20, 200, 180, 0.25); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); background: rgba(15, 34, 54, 0.05); }

/* ---------- Footer (as on the home page) ---------- */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 28px; color: var(--muted); font-size: 14px; }
.foot .brand { justify-self: start; font-size: 17px; }
.foot .brand img { width: 24px; height: 24px; }
.foot .made { justify-self: center; text-align: center; }
.foot .made a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.foot a:hover { color: var(--text); }
.foot nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }

/* ---------- The document ----------
   The title runs across the top. Below it, the contents sit on the left, kept
   in view while reading and marking the current section, beside the text in a
   readable column. On narrower screens the contents fold into a card above the
   text. */
.legal { position: relative; isolation: isolate; padding: 56px 0 104px; }
.legal::before { content: ''; position: absolute; z-index: -1; inset: -68px 0 auto; height: 620px; background: radial-gradient(40% 60% at 32% 0%, rgba(20, 200, 180, 0.15), transparent 70%), radial-gradient(28% 50% at 92% 8%, rgba(37, 99, 235, 0.10), transparent 70%); pointer-events: none; }
.legal-in { display: grid; grid-template-columns: 272px minmax(0, 720px); grid-template-areas: 'head head' 'toc doc'; justify-content: center; column-gap: 64px; }

.doc-head { grid-area: head; padding-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.doc-head h1 { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.updated { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.updated::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.doc-meta a { color: var(--accent); font-weight: 600; }
.doc-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

.toc { grid-area: toc; align-self: start; position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding: 0 6px 8px 0; }
.toc-title { padding-left: 15px; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.toc-toggle { display: none; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { position: relative; display: flex; gap: 10px; padding: 6px 10px 6px 14px; border-radius: 0 9px 9px 0; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color 0.2s ease, background-color 0.2s ease; }
.toc a .n { flex: none; min-width: 18px; padding-top: 1px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--faint); transition: color 0.2s ease; }
.toc a .n:empty::before { content: ''; display: block; width: 5px; height: 5px; margin: 6px 0 0 4px; border-radius: 50%; background: currentColor; }
.toc a:hover { color: var(--ink); background: rgba(15, 34, 54, 0.04); }
.toc a[aria-current='location'] { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.toc a[aria-current='location']::before { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); }
.toc a[aria-current='location'] .n { color: var(--accent); }

.doc { grid-area: doc; min-width: 0; overflow-wrap: break-word; color: var(--body); }
.doc h2 { scroll-margin-top: 96px; display: flex; align-items: flex-start; gap: 14px; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.doc h2 .n { flex: none; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 7px; margin-top: 0; border-radius: 10px; font-size: 15px; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--accent); background: var(--accent-soft); }
.doc h3 { scroll-margin-top: 96px; margin-top: 30px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.doc h2 + h3 { margin-top: 22px; }
.doc p, .doc li { font-size: 16px; line-height: 1.72; }
.doc p { margin-top: 16px; max-width: 68ch; }
.doc h2 + p { margin-top: 20px; }
.doc h3 + p { margin-top: 10px; }
.doc ul { list-style: none; display: grid; gap: 12px; margin-top: 16px; }
.doc ul > li { position: relative; padding-left: 26px; max-width: 66ch; }
.doc ul > li::before { content: ''; position: absolute; left: 7px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.75; }
.doc b, .doc strong { font-weight: 600; color: var(--ink); }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.2s ease; }
.doc a:hover { text-decoration-color: currentColor; }

/* The short version: the whole document in a few lines, set apart as a card. */
.tldr { position: relative; overflow: hidden; padding: 30px 30px 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.tldr::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #14C8B4, #2563EB); }
.doc .tldr h2 { scroll-margin-top: 96px; align-items: center; margin: 0; padding: 0; border: 0; font-size: 22px; }
.tldr-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: var(--lagoon-deep); box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.6); }
.tldr ul { gap: 14px; margin-top: 22px; }
.tldr ul > li { padding-left: 34px; max-width: none; }
.tldr ul > li::before { left: 0; top: 0.2em; width: 22px; height: 22px; opacity: 1; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9F90' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tldr > p { max-width: none; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); }

/* The postal and email address at the end. */
.doc .contact { max-width: none; margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); line-height: 1.7; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1020px) {
  .legal { padding-top: 40px; }
  .legal-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'toc' 'doc'; max-width: 760px; margin: 0 auto; }
  .doc-head { padding-bottom: 28px; }
  .toc { position: static; max-height: none; overflow: visible; margin: 0 0 32px; padding: 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 34, 54, 0.04); }
  .toc-title { display: none; }
  .toc-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 18px; text-align: left; font-weight: 600; color: var(--ink); }
  .toc-toggle small { font-size: 13.5px; font-weight: 500; color: var(--muted); }
  .toc-toggle::after { content: ''; width: 9px; height: 9px; margin: -4px 4px 0 auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s ease, margin 0.25s ease; }
  .toc.is-open .toc-toggle::after { transform: rotate(225deg); margin-top: 4px; }
  .js .toc:not(.is-open) ol { display: none; }
  .toc ol { border-left: 0; border-top: 1px solid var(--line); padding: 6px 0; }
  .toc a { padding: 10px 18px; border-radius: 0; font-size: 15px; }
  .toc a .n { padding-top: 2px; }
  .toc a[aria-current='location'] { background: none; }
  .toc a[aria-current='location']::before { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-in > .btn { margin-left: auto; }
}
@media (max-width: 860px) {
  .foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot .brand { justify-self: center; }
  .foot nav { justify-content: center; }
  .foot .made { order: 3; }
}
@media (max-width: 720px) {
  .nav .btn span.long { display: none; }
  .doc h2 { gap: 12px; margin-top: 44px; padding-top: 34px; }
  .doc h2 .n { min-width: 30px; height: 30px; font-size: 14px; }
  .tldr { padding: 24px 20px 20px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
