/* ============================================================================
   Shared styling for the policy pages.
   ============================================================================

   Same palette as the marketing site and the console, so these read as part of
   the product rather than something bolted on. Set for long-form reading: a
   narrower measure than the site, larger line height, and numbered sections
   that can be cited in an email ("clause 7.2") without counting paragraphs.

   The .plain blocks are plain-language summaries. They are deliberately marked
   as NOT part of the agreement -- a summary that contradicts the clause it
   sits next to is worse than no summary, so the operative text always wins and
   the page says so.
   ========================================================================== */

:root {
  --bg: #14161a;
  --panel: #1e2126;
  --panel-2: #23272d;
  --line: #2c3037;
  --line-2: #3a3f47;
  --text: #e8eaed;
  --muted: #9aa3af;
  --dim: #7d8794;
  --blue: #2f6fed;
  --blue-light: #62b6f5;
  --orange: #ffbe64;
  --red: #e5484d;
  --amber: #f2b441;
  --green: #4ec98a;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@font-face {
  font-family: "Panthas";
  src: url("/assets/panthas.woff2") format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-light); }
a:hover { color: #8fcdf8; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ---------- masthead ---------- */

.top {
  border-bottom: 1px solid var(--line);
  background: #0f1114;
  padding: 16px 0;
  margin-bottom: 44px;
}
.top .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.top .brand img { width: 26px; height: 26px; display: block; }
.display {
  font-family: "Panthas", Impact, "Arial Narrow", sans-serif;
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 0.95; font-size: 18px;
}
.display span { color: var(--orange); }
.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

/* ---------- document head ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 10px;
}
h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em;
}
.meta {
  color: var(--dim); font-size: 14px; font-family: var(--mono);
  padding-bottom: 24px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.meta span + span::before { content: " · "; color: var(--line-2); }

/* ---------- body ---------- */

h2 {
  font-size: 21px; margin: 44px 0 12px; line-height: 1.3;
  scroll-margin-top: 20px;
}
h2 .num {
  font-family: var(--mono); font-size: 15px; color: var(--orange);
  margin-right: 10px;
}
h3 { font-size: 17px; margin: 26px 0 8px; color: var(--text); }
h3 .num { font-family: var(--mono); font-size: 14px; color: var(--dim); margin-right: 8px; }

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }
strong { color: #fff; }

.lede { font-size: 19px; color: var(--muted); margin-bottom: 26px; }

/* ---------- plain-language summaries ---------- */

.plain {
  border-left: 3px solid var(--blue);
  background: rgba(47, 111, 237, 0.07);
  padding: 12px 16px; margin: 0 0 18px; border-radius: 0 var(--radius) var(--radius) 0;
}
.plain p { margin: 0; color: var(--muted); font-size: 15.5px; }
.plain p + p { margin-top: 8px; }
.plain::before {
  content: "In plain words";
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 6px;
}

/* ---------- the callout that matters most ---------- */

.callout {
  border: 1px solid var(--amber);
  background: rgba(242, 180, 65, 0.08);
  border-radius: var(--radius);
  padding: 18px 20px; margin: 26px 0;
}
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.red { border-color: var(--red); background: rgba(229, 72, 77, 0.08); }

/* ---------- tables ---------- */

.tbl-scroll { overflow-x: auto; margin: 0 0 18px; }
table {
  border-collapse: collapse; width: 100%; font-size: 15px;
  border: 1px solid var(--line);
}
th, td {
  text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
th {
  background: var(--panel-2); color: var(--text);
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
td code { font-family: var(--mono); font-size: 13px; color: var(--orange); }

/* ---------- contents ---------- */

.toc {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px;
}
.toc h2 { font-size: 14px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 4px; font-size: 15px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- footer ---------- */

footer {
  margin-top: 64px; border-top: 1px solid var(--line);
  padding: 26px 0 50px; color: var(--dim); font-size: 14px;
}
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- print ---------- */

@media print {
  :root { --bg: #fff; --text: #111; --muted: #444; --dim: #555; --line: #ccc; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .top nav, footer nav { display: none; }
  .plain { background: #f4f6fa; border-left-color: #888; }
  .callout { background: #fff8e8; }
  a { color: #111; text-decoration: underline; }
  h2 { page-break-after: avoid; }
}
