/* Shared styling for the legal pages (imprint, privacy). Mirrors index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #fbf8f1; --bg2: #ffffff; --ink: #1f1a10;
  --gold: #B6A088; --gold-dim: #7a6a56;
  --cream: #1f1a10; --cream-dim: #5d4f3c;
  --glass-brd: rgba(31,26,16,0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --nav-h: 84px;
}
@media (max-width: 767px) { :root { --nav-h: 76px; } }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--cream);
  font-family: var(--sans); font-weight: 300; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: var(--ink); color: #faf5ea; padding: 12px 20px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 3px; border-radius: 4px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 20px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(251,248,241,0.9);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--glass-brd);
}
@media (min-width: 768px) { nav { padding: 0 48px; } }
.nav-logo { height: 56px; display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 56px; width: auto; filter: invert(1) brightness(0.2); }
@media (min-width: 768px) { .nav-logo img { height: 68px; } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-back {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #faf5ea; background: var(--ink); padding: 11px 18px; border-radius: 100px;
  text-decoration: none; white-space: nowrap; transition: opacity 0.2s;
}
.nav-back:hover { opacity: 0.85; }
.lang-toggle { display: flex; flex-shrink: 0; border: 1px solid var(--glass-brd); border-radius: 100px; overflow: hidden; }
.lang-toggle button {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  padding: 10px 13px; background: transparent; border: 0; color: var(--cream-dim);
  cursor: pointer; transition: background .2s, color .2s; min-height: 44px; min-width: 44px;
}
.lang-toggle button.active { background: var(--ink); color: #faf5ea; }

/* ─── PAGE ─── */
main { padding: calc(var(--nav-h) + 56px) 22px 96px; }
@media (min-width: 768px) { main { padding: calc(var(--nav-h) + 88px) 24px 120px; } }
.legal { max-width: 760px; margin: 0 auto; }
.legal-eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 18px; display: block;
}
.legal h1 {
  font-family: var(--sans); font-size: clamp(34px, 8vw, 60px);
  font-weight: 900; line-height: 0.98; letter-spacing: -0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.legal h1 em { font-style: italic; font-weight: 300; font-family: var(--serif); color: var(--gold-dim); text-transform: none; font-size: 1.06em; }
.legal-updated { font-size: 13px; color: var(--cream-dim); margin-bottom: 44px; }
.legal h2 {
  font-family: var(--sans); font-size: clamp(19px, 4.2vw, 24px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2; margin: 52px 0 16px;
  padding-top: 28px; border-top: 1px solid var(--glass-brd); scroll-margin-top: calc(var(--nav-h) + 16px);
}
.legal h3 {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em; margin: 28px 0 10px;
}
.legal p { font-size: 15.5px; color: var(--cream-dim); margin-bottom: 14px; }
.legal p strong, .legal li strong { color: var(--ink); font-weight: 600; }
.legal ul { margin: 0 0 18px 0; padding-left: 20px; }
.legal li { font-size: 15.5px; color: var(--cream-dim); margin-bottom: 8px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--gold-dim); }

/* address / identity card */
.legal-card {
  background: var(--bg2); border: 1px solid var(--glass-brd); border-radius: 14px;
  padding: 24px 22px; margin: 0 0 28px;
}
.legal-card dl { display: grid; grid-template-columns: 1fr; gap: 2px 20px; margin: 0; }
@media (min-width: 620px) { .legal-card dl { grid-template-columns: max-content 1fr; gap: 10px 28px; } }
.legal-card dt {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dim); align-self: baseline; padding-top: 4px;
}
.legal-card dd { font-size: 15.5px; color: var(--ink); margin: 0 0 14px; }
@media (min-width: 620px) { .legal-card dd { margin-bottom: 0; } }

/* table of contents */
.legal-toc { margin: 0 0 8px; padding: 0; list-style: none; columns: 1; }
@media (min-width: 620px) { .legal-toc { columns: 2; column-gap: 32px; } }
.legal-toc li { break-inside: avoid; margin-bottom: 2px; font-size: 14px; }
.legal-toc a { text-decoration: none; color: var(--cream-dim); display: inline-block; padding: 6px 0; min-height: 24px; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }

/* UNFILLED legal data — deliberately loud so it cannot ship unnoticed */
.todo {
  background: #ffe8a3; color: #6b4e00; font-weight: 600;
  padding: 1px 7px; border-radius: 4px; border: 1px dashed #b8860b;
  font-family: var(--sans); font-size: 0.92em;
  /* long instruction placeholders must wrap, or they blow out the layout */
  white-space: normal; overflow-wrap: anywhere;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ─── FOOTER ─── */
footer { background: #090806; color: rgba(255,248,235,0.62); padding: 48px 22px calc(56px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; }
.footer-inner a { color: rgba(255,248,235,0.62); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; display: inline-block; }
.footer-inner a:hover { color: #faf5ea; }

/* ─── LANGUAGE BLOCKS ─── */
[data-lang-block] { display: none; }
[data-lang-block].active { display: block; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
