/* Shared stylesheet for the legal + support pages of both landing trees.
   Deliberately a separate file from the marketing page: those pages are one
   self-contained document each, these are five documents that must look like
   one set. Keep this file byte-identical between stasera-it/ and joinme-en/ —
   the two trees are the same product under two brands. */

:root {
  --coral: #FF5A5F;
  --coral-dark: #E14B50;
  --ink: #1A1A1C;
  --muted: #6B6B70;
  --line: #ECECEF;
  --bg: #FFFFFF;
  --bg-soft: #FBFAF9;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(26, 26, 28, 0.08);
  --warn: #9A6708;
  --warn-soft: #FFF7E4;
  --warn-line: #F0DFB4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav (matches the marketing page so the set reads as one site) ---- */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.18);
}
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 15px; color: var(--muted); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.here { color: var(--ink); font-weight: 700; }
@media (max-width: 700px) { .nav-links a { display: none; } .nav-links a.here { display: inline; } }

/* ---- Document ---- */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.doc .kicker {
  color: var(--coral); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.doc h1 {
  font-size: clamp(32px, 5.5vw, 46px); font-weight: 840;
  letter-spacing: -0.025em; line-height: 1.1; margin: 12px 0 10px;
}
.doc .lede { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
.doc .meta { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.doc h2 {
  font-size: 25px; font-weight: 800; letter-spacing: -0.015em;
  margin: 52px 0 12px; padding-top: 16px; border-top: 1px solid var(--line);
}
.doc h3 { font-size: 18px; font-weight: 750; margin: 30px 0 8px; }
.doc p, .doc li { font-size: 16.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc strong { font-weight: 700; }

/* ---- Table of contents ---- */
.toc {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin: 36px 0 0;
}
.toc h2 {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px; border: 0; padding: 0; font-weight: 700;
}
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; font-size: 15.5px; break-inside: avoid; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; font-size: 14px; letter-spacing: 0.01em; }
tbody tr:last-child td { border-bottom: 0; }

/* ---- Callouts ---- */
.note, .draft {
  border-radius: 14px; padding: 18px 22px; margin: 26px 0; font-size: 16px;
}
.note { background: var(--bg-soft); border: 1px solid var(--line); }
.note p:first-child, .draft p:first-child { margin-top: 0; }
.note p:last-child, .draft p:last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; }

.draft { background: var(--warn-soft); border: 1px solid var(--warn-line); color: #4A3A16; }
.draft .draft-title {
  display: block; font-weight: 800; color: var(--warn);
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin-bottom: 6px;
}

/* Unresolved facts. Deliberately loud: a placeholder that reads as prose is a
   placeholder that ships. Every one of these is an open item in
   ACTION_ITEMS.md — grep the tree for "tbd" before going live. */
.tbd {
  background: #FFE9A8; color: #4A3A16; border-bottom: 2px solid var(--warn);
  padding: 0 5px; border-radius: 3px; font-weight: 600; white-space: normal;
}

/* ---- Call to action inside a document ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(255, 90, 95, 0.34); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }

/* ---- Contact block ---- */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 22px 0;
}
.contact .card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.contact .card h3 { margin: 0 0 4px; font-size: 17px; }
.contact .card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.contact .card a { font-weight: 700; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; flex-wrap: wrap; gap: 14px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
