/* ===========================================================
   Legal pages (Imprint + Privacy) — shared styles
   =========================================================== */

:root {
  --brand: #3a2c8a;
  --brand-soft: #6f5dd2;
  --ink: #1c1a17;
  --ink-2: #4a443c;
  --ink-3: #7a7367;
  --line: rgba(28,26,23,0.12);
  --paper: #faf6ee;
  --paper-2: #f3ecdd;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark img { width: 44px; height: 44px; display: block; }
.brand-mark .wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--brand);
}
.nav {
  display: flex;
  gap: 26px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.72;
  padding-bottom: 4px;
  position: relative;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav a:hover::after { transform: scaleX(1); }

.lang {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--brand); color: #fff; }

/* ---------- Legal page main ---------- */
.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 6vw 120px;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  margin-bottom: 56px;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }

.legal-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 16px 0;
}
.legal-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink-2);
  margin: 0 0 64px 0;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.legal-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 48px 0;
  max-width: 56ch;
}

.legal-block {
  margin: 0 0 44px 0;
}
.legal-block h3 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 12px 0;
}
.legal-block h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 14px 0;
}
.legal-block p {
  margin: 0 0 14px 0;
  font-size: 16.5px;
  color: var(--ink-2);
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-block a:hover { text-decoration-thickness: 2px; }
.legal-block .addr-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}
.legal-block .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin: 0;
}

.legal-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 64px 0;
}

.legal-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 64px;
}

/* ---------- Footer (same as main) ---------- */
footer {
  background: var(--brand);
  color: rgba(255,255,255,0.78);
  padding: 56px 6vw 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand img { width: 56px; height: 56px; }
.footer-brand .f-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: #fff;
}
.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin: 0 0 14px 0;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  margin: 0 0 6px 0;
  display: block;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-legal a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { opacity: 0.4; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 16px; height: 64px; }
  .nav { display: none; }
  .brand-mark .wordmark { font-size: 18px; }
  .brand-mark img { width: 36px; height: 36px; }
  .legal-page { padding: 56px 5vw 80px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .lang-btn { padding: 7px 8px; font-size: 10px; letter-spacing: 0.1em; }
}
