:root {
  --bg: #070b15;
  --surface: #121a2c;
  --text: #edf2ff;
  --text-muted: #b4bfd9;
  --border: #2b3550;
  --gold: #c8a34d;
  --gold-strong: #a87c2b;
  --font-heading: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Avenir", "Helvetica Neue", sans-serif;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(26, 47, 95, 0.35), transparent 40%),
    radial-gradient(circle at 90% 16%, rgba(200, 163, 77, 0.2), transparent 34%),
    linear-gradient(180deg, #0a1120 0%, var(--bg) 100%);
}

.legal-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.legal-header {
  position: sticky;
  top: 0.8rem;
  z-index: 10;
  margin: 0.8rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(9, 14, 27, 0.88);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(200, 163, 77, 0.35);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.header-links {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.header-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.header-links a:hover {
  color: var(--gold);
}

.header-links .header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.82rem;
  border-radius: 10px;
  border: 1px solid rgba(200, 163, 77, 0.55);
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #0b111f;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px rgba(200, 163, 77, 0.28);
}

.header-links .header-btn:hover {
  color: #0b111f;
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(200, 163, 77, 0.36);
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 26, 44, 0.95);
  padding: 1.5rem;
  box-shadow: 0 28px 60px rgba(2, 5, 13, 0.5);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
}

h1 {
  margin: 0.5rem 0 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.effective-date {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.policy-intro {
  margin: 1rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

h2 {
  margin: 1.7rem 0 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

h3 {
  margin: 1rem 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.55;
}

li + li {
  margin-top: 0.3rem;
}

.legal-card p a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.contact {
  margin-top: 0.7rem;
}

.legal-footer {
  margin-top: 1rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.legal-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 760px) {
  .legal-shell {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }

  .legal-header,
  .legal-card {
    padding: 1rem;
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
