/* ============ EMOMI — privacy policy pages ============ */
/* Loaded after styles.css, which supplies the tokens (--bg, --accent…) and the
   font. The landing page strips list markers and paragraph margins for its own
   layout; a legal document needs them back, so everything here is scoped to
   .legal and nothing on the landing page changes.

   No JS on these pages, deliberately: a privacy policy has to be readable with
   scripting off, and each language is its own file with its own URL rather than
   a dictionary the landing page swaps at runtime. */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px var(--pad) 120px;
}

.legal-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 40px;
}

.legal h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  scroll-margin-top: 24px;
}

.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--text);
}

.legal p {
  margin: 0 0 16px;
  color: #d8d8d8;
}

.legal strong { color: var(--text); font-weight: 600; }

.legal a { color: var(--accent); }

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 16px;
  color: #d8d8d8;
}

.legal ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 0 0 16px;
  color: #d8d8d8;
}

.legal li { margin: 0 0 10px; }

/* The plain-language summary at the top — the part most people will read. */
.legal .summary {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 0 8px;
}

.legal .summary ul { margin-bottom: 0; }
.legal .summary li:last-child { margin-bottom: 0; }

/* Processors table — scrolls on its own rather than widening the page. */
.legal .table-wrap { overflow-x: auto; margin: 0 0 16px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  color: #d8d8d8;
}

.legal th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Language switcher: eight plain links, no script. */
.legal-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 28px;
}

.legal-langs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.legal-langs a:hover { color: var(--text); }

.legal-langs a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.legal-back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.legal-back:hover { color: var(--text); }
