:root {
  --panel-white: #fffdf9;
  --panel-cream: #f6eee3;
  --ink: #111722;
  --muted: #5f6876;
  --gold: #c98213;
  --gold-dark: #a96b0f;
  --hair: rgba(107, 75, 35, 0.14);
  --shadow: 0 20px 55px rgba(74, 50, 19, 0.08);
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  background: var(--panel-cream);
  font-family: var(--body);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.95), transparent 36rem),
    var(--panel-cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-dark);
  text-decoration-color: rgba(169, 107, 15, 0.34);
  text-underline-offset: 0.18em;
}

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

img { display: block; max-width: 100%; }

.legal-header {
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1080px);
  min-height: 76px;
  margin: 0 auto;
}

.legal-logo img {
  width: 174px;
  height: auto;
}

.back-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover { color: var(--gold-dark); }

.legal-main {
  width: min(100% - 40px, 780px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.legal-intro {
  margin-bottom: 36px;
  text-align: center;
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.legal-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.legal-document {
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: var(--panel-white);
  box-shadow: var(--shadow);
}

.legal-section {
  padding: 30px 34px 32px;
}

.legal-section + .legal-section { border-top: 1px solid var(--hair); }

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.legal-section p,
.legal-section li {
  color: #384252;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p { margin: 0; }
.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul { margin-top: 14px; }

.legal-section strong {
  color: var(--ink);
  font-weight: 750;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
}

.legal-list li { padding-left: 0.22rem; }
.legal-list li::marker { color: var(--gold); }

.legal-footer {
  border-top: 1px solid var(--hair);
  background: var(--panel-white);
}

.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1080px);
  min-height: 108px;
  margin: 0 auto;
}

.legal-footer__brand {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.legal-footer a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a[aria-current="page"] { color: var(--gold-dark); }

@media (max-width: 640px) {
  .legal-header__inner,
  .legal-main,
  .legal-footer__inner { width: min(100% - 32px, 780px); }

  .legal-header__inner { min-height: 68px; }
  .legal-logo img { width: 144px; }
  .back-link { font-size: 0.78rem; }

  .legal-main { padding: 50px 0 64px; }
  .legal-intro { margin-bottom: 28px; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.25rem); }

  .legal-document { border-radius: 18px; }
  .legal-section { padding: 25px 22px 27px; }
  .legal-section h2 { font-size: 1.18rem; }
  .legal-section p,
  .legal-section li { font-size: 0.95rem; line-height: 1.7; }

  .legal-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 0 34px;
  }

  .legal-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
