/* InfoTraffic — legal pages (privacy, terms).
   Loaded AFTER /styles.css; reuses its design tokens (--ink, --accent, --line, …).
   No :root here on purpose — the palette lives in styles.css. */

/* Narrower reading column than the 1100px home layout */
.legal-main {
  max-width: 768px;
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(64px, 10vw, 112px);
}

.doc-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 8px;
}

.effective {
  color: var(--ink-mute);
  font-size: 14px;
  margin: 0 0 32px;
}

.legal-main h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
  scroll-margin-top: 96px;
}

.legal-main h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal-main p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.legal-main ul {
  color: var(--ink-soft);
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-main li {
  margin: 6px 0;
}

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

/* Inline links: inherit the global underline, accent the rule */
.legal-main a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}
.legal-main a:hover {
  border-bottom-color: var(--ink);
}

/* Right side of the header: legal nav + RO/EN toggle */
.top-end {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 4vw, 28px);
}

/* Bilingual content: only the active language's block is shown.
   Default (no html[lang="en"]) shows Romanian — the site default — so the
   page is readable even before /i18n.js runs or with JS disabled. */
.lang-block[lang="en"] {
  display: none;
}
html[lang="en"] .lang-block[lang="ro"] {
  display: none;
}
html[lang="en"] .lang-block[lang="en"] {
  display: block;
}

/* Header nav on legal pages (sits beside the RO/EN toggle) */
.legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.legal-nav a {
  border-bottom: 0;
  color: var(--ink-mute);
  font-weight: 500;
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Table of contents */
.toc {
  background: #f3f1ec;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 32px;
}
.toc-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 28px;
}
.toc li {
  margin: 5px 0;
  break-inside: avoid;
}
.toc a {
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 0;
}
.toc a:hover {
  color: var(--accent);
}

/* Contact / report callout */
.callout {
  background: #f3f1ec;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 28px 0;
}
.callout p {
  margin: 0;
}

/* Footer: allow links to sit alongside the copyright */
.bottom-row--meta a {
  border-bottom-color: transparent;
}
.bottom-row--meta a:hover {
  border-bottom-color: var(--ink-soft);
}

@media (max-width: 560px) {
  .toc ul {
    columns: 1;
  }
  .top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .top-end {
    gap: 16px;
    flex-wrap: wrap;
  }
}
