/* Shared styles for the Terms of Service and Privacy Policy pages. */
@font-face { font-family: 'Onest'; src: url('/assets/Onest-latin.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0a1214;
  --surface: #0e191b;
  --surface-2: #132224;
  --line: #1f3133;
  --fg: #ebe7df;
  --body: #c9d3d0;
  --muted: #8ea19e;
  --accent: #4fd1b5;
  --accent-soft: rgba(79,209,181,.12);
  --bronze: #d0a86c;
  --bronze-soft: rgba(208,168,108,.14);
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --f-body: "Onest", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.75 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* header */
.lh { border-bottom: 1px solid var(--line); background: rgba(10,18,20,.9); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.lh-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 20px/1 var(--f-body); letter-spacing: .07em; }
.brand b { color: var(--accent); font-weight: 700; }
.brand svg { width: 26px; height: 26px; color: var(--fg); }
.lh-nav { display: flex; align-items: center; gap: 6px; }
.lh-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.lh-nav a:hover, .lh-nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.lh-nav .back { color: var(--accent); }

/* title block */
.hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { margin: 18px 0 14px; font: 600 clamp(40px, 6vw, 64px)/1.05 var(--f-display); color: var(--fg); letter-spacing: -.01em; }
.hero .lede { margin: 0; max-width: 62ch; font-size: 19px; color: var(--body); }
.hero .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* layout */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 56px 0 96px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc p { margin: 0 0 14px; font: 700 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--fg); border-left-color: var(--accent); }

article { min-width: 0; max-width: 72ch; }
article section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: 92px; }
article h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font: 600 clamp(26px, 3.4vw, 34px)/1.2 var(--f-display); color: var(--fg); }
article h2 .n { flex: none; min-width: 2.1ch; font: 700 14px/1 var(--f-body); letter-spacing: .1em; color: var(--accent); font-variant-numeric: lining-nums; }
article p { margin: 0 0 14px; }
article ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
article li { position: relative; padding-left: 26px; }
article li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
article strong { color: var(--fg); font-weight: 600; }

.callout { margin: 0 0 40px; padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); color: var(--fg); font-weight: 500; }
.callout.warn { border-left-color: var(--bronze); background: linear-gradient(0deg, var(--bronze-soft), var(--bronze-soft)), var(--surface); }
.callout b { display: block; margin-bottom: 4px; font: 700 12px/1.4 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.callout.warn b { color: var(--bronze); }
.callout p { margin: 0; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; }
.fact { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fact b { display: block; color: var(--fg); font-weight: 700; font-size: 18px; }
.fact span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* footer: identical to the footer on the home page */
.meander {
  height: 14px; opacity: .55;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13H24V1H4V9H16V5H10' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center / 28px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13H24V1H4V9H16V5H10' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center / 28px 14px;
}
.chain-pill { font: 500 12px var(--f-body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.chain-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.closing { border-top: 1px solid var(--line); background: var(--surface); padding-top: 48px; }
footer { padding-block: 0 36px; color: var(--muted); font-size: 14px; line-height: 1.5; }
footer .footer-meander { margin-bottom: 56px; }
footer .footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 72px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
footer .footer-cols { display: grid; grid-template-columns: repeat(3, max-content); gap: 40px 56px; }
footer .footer-brand { display: inline-block; color: var(--fg); font: 700 22px/1 var(--f-body); letter-spacing: .07em; text-decoration: none; }
footer .footer-brand b { color: var(--accent); font-weight: 700; }
footer .footer-description { max-width: 40ch; margin: 16px 0 0; line-height: 1.7; }
footer .footer-status { margin-top: 22px; }
footer .footer-h { font: 700 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
footer .footer-links { display: flex; flex-direction: column; gap: 10px; }
footer .footer-links a { color: var(--muted); text-decoration: none; font-weight: 400; transition: color .15s ease; }
footer .footer-links a:hover, footer .footer-links a:focus-visible { color: var(--fg); }
footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 24px; font-size: 12px; line-height: 1.7; }
footer .footer-bottom p { max-width: 74ch; margin: 0; }
@media (max-width: 760px) { footer .footer-top { grid-template-columns: 1fr; } footer .footer-cols { grid-template-columns: repeat(2, max-content); } }
@media (max-width: 460px) { footer .footer-cols { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; }
  .toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .toc ol { border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .toc a { padding-left: 0; margin-left: 0; border-left: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 32px; }
  .lh-nav a:not(.back) { display: none; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
