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

:root {
  --cream: #faf7f2;
  --ivory: #f5f0e8;
  --gold: #c5a572;
  --gold-dark: #a68b5b;
  --text-primary: #4a4540;
  --text-secondary: #6b6560;
  --text-tertiary: #9b9590;
  --border: #e8e2d8;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Landing page ──────────────────────────────────────── */

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

.landing-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-header a.home {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
  text-decoration: none;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-ornament {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2.5rem;
  opacity: 0.5;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  color: var(--gold);
  letter-spacing: 0.025em;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s ease both;
}

.tagline {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.9s 0.1s ease both;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2.75rem;
  animation: fadeUp 0.9s 0.2s ease both;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 100px;
  padding: 0.45rem 1.25rem;
  opacity: 0.75;
  animation: fadeUp 0.9s 0.3s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Shared footer ─────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer .copy {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

footer nav {
  display: flex;
  gap: 1.5rem;
}

footer nav a {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s;
}

footer nav a:hover {
  color: var(--gold);
}

/* ─── Legal pages ───────────────────────────────────────── */

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

.legal-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  background-color: var(--cream);
  z-index: 10;
}

.legal-header a.home {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  background: var(--ivory);
  border-radius: 100px;
  padding: 0.2rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition:
    color 0.15s,
    background 0.15s;
}

.lang-btn.active {
  color: var(--text-primary);
  background: var(--cream);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.75rem 2rem 5rem;
  flex: 1;
  width: 100%;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.last-updated {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 2.75rem;
}

.section {
  margin-bottom: 2rem;
}

.section h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section p + p {
  margin-top: 0.75rem;
}

.section ul {
  list-style: none;
  margin-top: 0.5rem;
}

.section ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 1.1em;
  position: relative;
}

.section ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.section ul.sub {
  margin-top: 0.25rem;
  margin-left: 1rem;
}

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .legal-header {
    padding: 0.9rem 1.25rem;
  }
  .legal-content {
    padding: 1.75rem 1.25rem 3.5rem;
  }
  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }
}
