/* =========================================================================
   Shared styling for the legal pages (privacy, terms — EN and RO).
   Same design tokens as the landing page, trimmed to what prose needs.
   No build step, no framework — matches the rest of marketing/.
   ========================================================================= */

:root {
  --background: 214 35% 96%;
  --foreground: 218 35% 16%;
  --card: 210 40% 99%;
  --muted-foreground: 217 18% 44%;
  --primary: 217 80% 46%;
  --border: 214 30% 86%;
  --secondary: 214 40% 93%;
  --accent-orange: 38 92% 50%;
  --radius: 12px;
  --max-width: 820px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.nav .spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; min-width: 38px; padding: 0 9px; border-radius: 8px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}
.lang-switch:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  background: hsl(var(--primary)); color: white;
}
.btn:hover { text-decoration: none; }

/* ── Document ──────────────────────────────────────────────────────────── */
main { padding: 56px 0 88px; }
.doc-head { margin-bottom: 40px; }
.doc-head h1 { font-size: 40px; font-weight: 900; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 12px; }
.doc-meta { font-size: 13px; color: hsl(var(--muted-foreground)); }
.lede { font-size: 17px; color: hsl(var(--muted-foreground)); margin-top: 16px; }

h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.015em;
  margin: 44px 0 12px; padding-top: 20px;
  border-top: 1px solid hsl(var(--border));
}
h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 650; }

table {
  width: 100%; border-collapse: collapse; margin: 16px 0 20px;
  font-size: 14px; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  overflow: hidden;
}
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
th { background: hsl(var(--secondary)); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

.callout {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--primary));
  border-radius: var(--radius); padding: 16px 18px; margin: 20px 0;
  font-size: 15px;
}
.callout p:last-child { margin-bottom: 0; }

/* Unfilled company details. Deliberately loud — these must not reach
   production unnoticed. Remove the <mark> tags once the entity exists. */
mark.todo {
  background: hsl(var(--accent-orange) / 0.28);
  border-bottom: 2px solid hsl(var(--accent-orange));
  color: inherit; padding: 1px 5px; border-radius: 4px;
  font-weight: 650; font-size: 0.95em;
}

.toc {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 8px;
}
.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(var(--muted-foreground)); margin: 0 0 10px; padding: 0; border: none; }
.toc ol { margin: 0 0 0 18px; }
.toc li { margin-bottom: 4px; font-size: 14px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid hsl(var(--border));
  padding: 32px 0; font-size: 13px; color: hsl(var(--muted-foreground));
}
.foot-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot-inner a { color: inherit; }
.foot-links a { margin-left: 18px; }

@media (max-width: 760px) {
  .doc-head h1 { font-size: 30px; }
  h2 { font-size: 19px; }
  .foot-inner { flex-direction: column; }
  .foot-links a { margin-left: 0; margin-right: 18px; }
}
