/* Shared shell for the legal set: /legal, /terms, /privacy, /dpa,
   /subprocessors, /acceptable-use.
   
   The marketing pages inline their CSS because each is a one-off. The legal
   pages are six documents that must look like one document set, so they share
   this file instead: a change to the type scale lands on all six, and a page
   added later cannot drift. Tokens are copied from brand/guideline.html, which
   stays authoritative. */

@font-face { font-family: Manrope; src: url('/manrope-var.ttf'); font-weight: 100 900; font-display: swap; }

:root {
  --tomato: #DA3D12; --tomato-text: #B5370F; --cream: #FAF5EC; --ink: #201B16;
  --ink-60: #201B1699; --ink-40: #201B1666; --paper: #FFFDF8; --ochre: #B36A00;
  --rule: #201B1614; --rule-strong: #201B1626;
}

* { box-sizing: border-box; }

body {
  margin: 0; font-family: Manrope, system-ui, sans-serif;
  background: var(--cream); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The same paper grain the marketing pages carry, so the legal set does not
   read as a different site. */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: 0.035; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* Nav, identical to the marketing pages. */
nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 0; }
nav .logo img { height: 30px; display: block; }
nav .links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
nav .links a.navlink { color: var(--ink); text-decoration: none; opacity: 0.75; }
nav .links a.navlink:hover { opacity: 1; }
nav .links a.navlink.here { opacity: 1; color: var(--tomato-text); }
.btn {
  background: var(--tomato); color: #fff; border-radius: 10px; padding: 11px 20px; font-weight: 700;
  text-decoration: none; font-size: 15px; display: inline-block;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--tomato-text); transform: translateY(-1px); }

header { padding: 76px 0 8px; }
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 18px; max-width: 22ch; }
h1 em { color: var(--tomato); font-style: normal; }
.sub { font-size: clamp(17px, 2vw, 19px); max-width: 60ch; margin: 0; font-weight: 500; }

/* Effective date and version, on every document. A legal page without one is
   unciteable. */
.stamp {
  margin: 26px 0 0; font-size: 13.5px; color: var(--ink-60); font-weight: 600;
  border-top: 1px solid var(--rule); padding-top: 16px; max-width: 60ch;
}
.stamp b { color: var(--ink); }

section { padding: 48px 0 0; }
section:last-of-type { padding-bottom: 90px; }
h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; margin: 0 0 14px; max-width: 32ch; }
h2 em { color: var(--tomato); font-style: normal; }
h3 { font-size: 17px; font-weight: 800; margin: 28px 0 10px; letter-spacing: -0.01em; }
p { font-size: 16.5px; max-width: 66ch; margin: 0 0 14px; }
ul, ol { max-width: 66ch; padding-left: 22px; margin: 0 0 16px; }
li { font-size: 16.5px; margin: 0 0 9px; }
a { color: var(--tomato-text); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; background: #201B160d; border-radius: 5px; padding: 1px 6px; }
strong { font-weight: 800; }

/* Numbered clauses. The number is what people cite in a redline, so it is
   rendered rather than typed into the heading text. */
.clause { counter-reset: none; }
ol.clauses { list-style: none; padding-left: 0; max-width: none; counter-reset: clause; }
ol.clauses > li { counter-increment: clause; margin: 0 0 40px; max-width: none; }
ol.clauses > li > h2 { display: flex; gap: 14px; align-items: baseline; max-width: 34ch; }
ol.clauses > li > h2::before {
  content: counter(clause); color: var(--tomato); font-size: 0.72em; font-weight: 800;
  font-variant-numeric: tabular-nums; flex: 0 0 auto; min-width: 1.4em;
}
ol.clauses > li > * { margin-left: 0; }

/* Tables: subprocessors, retention, data categories. */
table.ref { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; }
table.ref th {
  text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-60); padding: 0 16px 10px 0; font-weight: 700; vertical-align: bottom;
}
table.ref td { padding: 12px 16px 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
table.ref tr:last-child td { border-bottom: 1px solid var(--rule); }
.scroll-x { overflow-x: auto; margin: 18px 0 8px; }
.scroll-x table.ref { margin: 0; min-width: 640px; }

/* The hub's document cards. */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 0; }
.docs a.doc {
  display: block; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 14px;
  padding: 22px 24px; text-decoration: none; color: var(--ink); font-weight: 400;
  transition: transform .15s ease, border-color .15s ease;
}
.docs a.doc:hover { transform: translateY(-2px); border-color: var(--tomato); text-decoration: none; }
.docs a.doc b { display: block; font-size: 18px; font-weight: 800; color: var(--tomato-text); margin: 0 0 6px; }
.docs a.doc span { font-size: 15px; color: var(--ink-60); font-weight: 500; line-height: 1.5; }

/* A called-out paragraph: the one thing on the page a reader must not skim. */
.note {
  background: var(--paper); border-left: 3px solid var(--tomato); border-radius: 0 10px 10px 0;
  padding: 18px 22px; margin: 20px 0; max-width: 66ch;
}
.note p:last-child { margin-bottom: 0; }

/* Table of contents on the long documents. */
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0; margin: 34px 0 0; }
.toc ol { columns: 2; column-gap: 40px; max-width: none; padding-left: 20px; margin: 0; }
.toc li { font-size: 15px; margin: 0 0 7px; break-inside: avoid; }

footer {
  border-top: 1px solid #201B161a; padding: 34px 0 46px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
footer .fmark { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-60); font-weight: 600; }
footer img { width: 30px; height: 30px; }
footer a { color: var(--tomato-text); text-decoration: none; font-weight: 700; }

@media (max-width: 800px) {
  nav .links { gap: 16px; font-size: 14px; }
  nav .links a.navlink.anchor { display: none; }
  .btn { padding: 10px 15px; font-size: 14px; }
  .docs { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  nav { flex-wrap: wrap; row-gap: 14px; }
  nav .logo { flex: 1 0 100%; }
  nav .links { width: 100%; justify-content: flex-start; align-items: center; flex-wrap: wrap; row-gap: 10px; }
  nav .links .btn { margin-left: auto; }
}
