@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Outfit:wght@300;400;500&display=swap');

:root {
  --bg:         #07080d;
  --text:       #d8d3c8;
  --text-mid:   #9a9489;
  --text-muted: #52504c;
  --gold:       #c4923a;
  --gold-lt:    #e8c070;
  --border:     rgba(196, 146, 58, 0.15);
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Outfit', system-ui, sans-serif;
  --max-w:      720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
}

.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold-lt); }

.legal-brand {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--text-mid);
  letter-spacing: 0.06em;
}

/* ─── Content ────────────────────────────────────────────────────────────── */
.legal-content {
  flex: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 4rem 2rem 5rem;
  width: 100%;
}

.legal-meta {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-meta h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: #ede8db;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.legal-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: #ede8db;
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

section h3 {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-lt);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

section p { margin-bottom: 0.9rem; font-size: 0.9375rem; }
section p:last-child { margin-bottom: 0; }

section ul {
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
}

section ul li {
  font-size: 0.9375rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(196, 146, 58, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  color: var(--gold-lt);
  text-decoration-color: var(--gold-lt);
}

strong { font-weight: 500; color: #ede8db; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.legal-footer {
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.legal-footer a { color: var(--text-muted); }
.legal-footer a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .legal-content { padding: 2.5rem 1.25rem 3rem; }
}
