@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Cormorant-Garamond-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
}

:root {
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.7);
  --gold-faint: rgba(212, 175, 55, 0.25);
  --gold-line: rgba(212, 175, 55, 0.18);
  --cream: #F5EFE0;
  --cream-soft: rgba(245, 239, 224, 0.78);
  --cream-faint: rgba(245, 239, 224, 0.45);
  --bg: #0A0805;
  --bg-warm: #1F1208;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-warm) 0%, var(--bg) 60%);
  z-index: 0;
  pointer-events: none;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

/* Header with compact logo */
.legal-header {
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--gold-line);
}
.legal-header a {
  display: inline-block;
  line-height: 0;
}
.legal-header img {
  width: clamp(180px, 24vw, 260px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.18));
  transition: filter 0.3s ease;
}
.legal-header a:hover img {
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.32));
}

/* Content area */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.back-link::before {
  content: '←';
  font-size: 13px;
  letter-spacing: 0;
}
.back-link:hover {
  color: var(--gold);
  gap: 12px;
}

.legal-content h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 10px;
}

.legal-content .subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 44px;
}

.legal-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--gold);
  letter-spacing: 0.01em;
  margin: 44px 0 14px;
}

.legal-content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin: 24px 0 8px;
}

.legal-content p,
.legal-content li {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--cream-soft);
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.legal-content li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.legal-content li::before {
  content: '·';
  color: var(--gold);
  position: absolute;
  left: 4px;
  font-weight: 700;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.legal-content a:hover { color: #F4DC8A; }

.legal-content strong {
  color: var(--cream);
  font-weight: 500;
}

/* Placeholder markers — make it obvious what needs filling in */
.placeholder {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  padding: 1px 8px;
  border-radius: 2px;
  font-family: 'SF Mono', Menlo, Monaco, monospace;
  font-size: 0.88em;
  font-weight: 500;
  border: 1px dashed var(--gold-faint);
}

.note {
  background: rgba(212, 175, 55, 0.06);
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--cream-soft);
  line-height: 1.65;
}

/* Footer matches main site */
.site-footer {
  padding: 20px 16px 36px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(245, 239, 224, 0.45);
  letter-spacing: 0.04em;
  line-height: 1.6;
  border-top: 1px solid var(--gold-line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
}
.site-footer a,
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: rgba(245, 239, 224, 0.62);
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.15);
}
.site-footer a:hover,
.link-button:hover {
  color: var(--gold);
  background-color: rgba(212, 175, 55, 0.04);
}
.site-footer a:focus-visible,
.link-button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
  color: var(--gold);
}
.site-footer .separator {
  display: inline-flex;
  align-items: center;
  color: var(--gold-faint);
  user-select: none;
  pointer-events: none;
}
.footer-legal p {
  color: rgba(245, 239, 224, 0.4);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .legal-header { padding: 24px 18px 20px; }
  .legal-content { padding: 40px 20px 60px; }
  .back-link { margin-bottom: 32px; }
  .site-footer .separator { padding: 0 6px; }
}
