/* Shared look for the legal pages (privacy, terms, imprint): same palette, fonts and scenery as the main site. */
@font-face { font-family: 'Lora Variable'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('/assets/fonts/lora-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Lora Variable'; font-style: italic; font-display: swap; font-weight: 400 700; src: url('/assets/fonts/lora-latin-wght-italic.woff2') format('woff2-variations'); }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'); }

:root {
  color-scheme: dark;
  --bg: #0e1114;
  --text: #f4ecdf;
  --gold: #edb66c;
  --muted: #d6cab8;
  --soft: #e0d8cb;
  --line: rgb(237 182 108 / 22%);
  --card: rgb(20 25 29 / 78%);
  --serif: 'Lora Variable', Georgia, serif;
  --sans: 'Manrope Variable', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scrollbar-color: #786041 #111417; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 500 1rem/1.75 var(--sans);
  letter-spacing: .005em;
}
::selection { background: var(--gold); color: #211911; }
a { color: var(--gold); text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 3px; }

/* Scenery: the moonlit valley fades into the page, like the hero of the main site. */
.legal-scenery {
  position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(14 17 20 / 15%), rgb(14 17 20 / 55%) 55%, var(--bg)),
    linear-gradient(90deg, rgb(9 16 23 / 55%), transparent 75%),
    url('/assets/moonlit-valley.webp') 66% 0 / cover;
}

.legal-header { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 36px; min-height: 88px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-emblem { width: 40px; height: 46px; object-fit: contain; }
.brand-wordmark { width: 130px; height: auto; }
.legal-header nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-weight: 650; }
.legal-header nav a { color: var(--soft); text-decoration: none; transition: color .2s ease; }
.legal-header nav a:hover { color: var(--gold); }

main { width: 100%; max-width: 48rem; margin: 0 auto; padding: 72px 16px 88px; flex: 1; }
.legal-intro { margin-bottom: 40px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 16px; font: 500 clamp(42px, 5vw, 60px)/1.1 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
.lede { max-width: 34rem; margin: 0; color: var(--soft); font-size: 1.125rem; line-height: 1.8; text-shadow: 0 2px 12px #101820; }

.legal-card {
  padding: 8px 44px 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
  backdrop-filter: blur(10px);
}
h2 { margin: 36px 0 10px; font: 500 1.5rem/1.3 var(--serif); color: var(--text); letter-spacing: -.01em; }
h2::before { content: ''; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--gold); }
h3 { margin: 24px 0 8px; font-size: 1.05rem; color: var(--text); }
p, ul, ol { margin: 0 0 1rem; color: var(--soft); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
strong { color: var(--text); }
.note { padding: 1rem 1.25rem; background: rgb(237 182 108 / 7%); border: 1px solid var(--line); border-radius: 12px; }
.small { color: var(--muted); font-size: .875rem; }

.legal-footer { width: 100%; border-top: 1px solid #3c3428; background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 25%)); }
.legal-footer-inner { max-width: 1280px; margin: 0 auto; padding: 27px 36px; display: flex; align-items: center; gap: 35px; font-size: .875rem; color: #c5b7a0; }
.legal-footer .brand-wordmark { width: 118px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 25px; margin-left: auto; }
.legal-footer nav a { color: #c5b7a0; text-decoration: none; transition: color .2s ease; }
.legal-footer nav a:hover, .legal-footer nav a[aria-current='page'] { color: var(--gold); }

@media (max-width: 720px) {
  .legal-header { padding: 0 16px; min-height: 72px; }
  .brand-wordmark { width: 108px; }
  .brand-emblem { width: 34px; height: 40px; }
  .legal-header nav { gap: 18px; font-size: .9375rem; }
  .legal-scenery { height: 440px; }
  main { padding-top: 40px; }
  .legal-card { padding: 4px 20px 28px; border-radius: 14px; }
  .legal-footer-inner { padding: 24px 16px; flex-wrap: wrap; gap: 18px; }
  .legal-footer-inner > span { display: none; }
  .legal-footer nav { gap: 18px; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
