/* ══════════════════════════════════════════════════════════════
   Chatty Architect — legal pages (confidentialitate, stergere-cont)

   index.html is deliberately self-contained and carries its own copy
   of these tokens; it is the source of truth for the brand and this
   file follows it. Keep the token block below in step with the one
   at the top of index.html — colors, type and radii are the same
   design system, only the layout differs (prose measure, not a
   marketing grid).

   Unlike index.html these pages are NOT rendered from JS. A privacy
   policy has to survive a reader with scripts off, a text-mode
   browser and a Play reviewer's fetch, so the markup is static and
   the styling lives here rather than inline: two pages sharing one
   sheet cannot drift apart the way two inline copies would.
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens: mirrored from index.html ── */
:root {
  --paper:        #fafaf8;
  --surface:      #ffffff;
  --ink:          #0f0f10;
  --ink-soft:     #5f5e58;
  --ink-mute:     #9b998f;
  --rule:         #e8e6e0;
  --rule-strong:  #cfccc3;

  --sage:         #7d8a72;
  --sage-bg:      #eef0eb;
  --accent:       var(--sage);
  --accent-bg:    var(--sage-bg);

  --font-sans:  'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  --radius-pill: 100px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 180ms;

  /* Narrower than index.html's 1120px: this is prose, and a legal
     page is only readable at a ~70-character measure. */
  --max: 760px;
  --gutter: 32px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; transition: opacity var(--dur-fast) var(--ease-out); }
a:hover { text-decoration: underline; text-underline-offset: 3px; opacity: .8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 500; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ── Header — the site header, minus the tools ──
   No RO/EN switch and no CTA here: the toggle would have to reload a
   second translated document rather than re-render a dictionary, and
   the CTAs have no destination yet (see DESTINATIONS in index.html). */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  /* The header spans the full page width even though the prose does
     not, so it opts out of the narrow --max. */
  max-width: 1120px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 24px;
  color: var(--ink); letter-spacing: -.5px; white-space: nowrap; flex-shrink: 0;
}
.wordmark:hover { text-decoration: none; opacity: .7; }
.site-nav { display: flex; gap: 24px; align-items: center; min-width: 0; }
.site-nav a { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* ── Document head ── */
.doc { padding-top: 64px; padding-bottom: 88px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-mute);
  margin: 0 0 14px;
}
.doc h1 {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: 46px; line-height: 1.06; letter-spacing: -1px;
  color: var(--ink); margin: 0 0 14px;
}
.updated {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-mute);
  margin: 0 0 40px;
}
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }

/* ── Prose ──
   h2 gets the section rule the marketing page draws with .slabel, so
   the two documents scan the same way. */
.doc h2 {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: 28px; line-height: 1.15; color: var(--ink);
  margin: 52px 0 16px; padding-top: 26px; border-top: 1px solid var(--rule);
}
.doc h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin: 28px 0 6px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--ink-mute); }
code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1px 5px; color: var(--ink);
}

/* ── Table ── */
.table-wrap { overflow-x: auto; margin: 22px 0 26px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-mute);
  border-bottom-color: var(--rule-strong); padding-bottom: 10px;
}
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 500; padding-right: 20px; }
tr:last-child td { border-bottom: none; }

/* ── Callout — the hero-note idiom: accent rule on the left ── */
.callout {
  border-left: 1px solid var(--accent);
  background: var(--accent-bg);
  padding: 20px 22px; margin: 26px 0;
}
.callout p { margin: 0 0 12px; }
.callout p:last-child { margin-bottom: 0; }

/* ── Footer — same three-part structure as index.html ── */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); }
.site-footer .wrap { max-width: 1120px; }
.footer-cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 36px; }
.footer-brand { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 23px; color: var(--ink); margin-bottom: 10px; }
.footer-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--ink-mute); text-transform: uppercase; }
.footer-col h2 { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 1.6px; color: var(--ink-mute); text-transform: uppercase; margin: 0 0 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-legal {
  border-top: 1px solid var(--rule); padding-top: 20px; padding-bottom: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--ink-mute); text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .doc { padding-top: 44px; padding-bottom: 56px; }
  .doc h1 { font-size: 34px; }
  .doc h2 { font-size: 24px; margin-top: 40px; }
  .lede { font-size: 17px; }
  .footer-cols { flex-direction: column; gap: 28px; }
}

/* The header wordmark and nav are the only things that would collide
   on a very narrow screen; below this the nav drops to its own line. */
@media (max-width: 420px) {
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc { padding: 0; }
  .doc h2 { page-break-after: avoid; }
}
