:root {
  --cream-1: #fbf7ec;
  --cream-2: #f0e7d0;
  --paper: #f7f0df;
  --white: #fffdf8;
  --gold-1: #e7c977;
  --gold-2: #c9a14a;
  --gold-3: #8e6a24;
  --red: #d8221c;
  --red-dark: #b91818;
  --ink: #241e18;
  --muted: #6f655a;
  --line: rgba(142, 106, 36, .28);
  --line-soft: rgba(142, 106, 36, .16);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(75% 35% at 8% 8%, rgba(231, 201, 119, .28), transparent 72%),
    radial-gradient(55% 28% at 96% 12%, rgba(216, 34, 28, .06), transparent 70%),
    linear-gradient(180deg, var(--cream-1), var(--cream-2));
}

a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(216, 34, 28, .28); outline-offset: 3px; }
.container { width: min(100% - 40px, var(--max-width)); margin-inline: auto; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(201, 161, 74, .18);
  background: rgba(251, 247, 236, .92);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 39px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream-1);
  box-shadow: 0 8px 24px -16px rgba(140, 110, 46, .7);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.28); }
.brand-name { font: 600 21px/1 var(--serif); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links .cta {
  padding: 10px 15px;
  color: var(--white);
  border-radius: 11px;
  background: var(--red);
}
.nav-links .cta:hover { color: var(--white); background: var(--red-dark); }

main { padding: clamp(48px, 8vw, 88px) 0 88px; }
.hero { max-width: 850px; margin: 0 auto 34px; text-align: center; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 7px 12px;
  color: var(--gold-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 { margin: 0; font: 700 clamp(36px, 7vw, 64px)/1.06 var(--serif); letter-spacing: -.03em; }
.lead { max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: 17px; }
.version { margin-top: 14px; color: var(--gold-3); font-size: 13px; font-weight: 700; }

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(255, 253, 248, .86);
  box-shadow: 0 34px 80px -48px rgba(86, 60, 16, .54);
}

.notice {
  margin: 0 0 34px;
  padding: 17px 19px;
  color: #594b3c;
  border: 1px solid rgba(201, 161, 74, .3);
  border-radius: 15px;
  background: rgba(231, 201, 119, .15);
  font-size: 14px;
}

.legal-card section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.legal-card h2 { margin: 0 0 17px; font: 600 clamp(23px, 3vw, 31px)/1.25 var(--serif); }
.legal-card h3 { margin: 24px 0 10px; font: 700 18px/1.35 var(--sans); }
.legal-card p { margin: 0 0 13px; }
.legal-card ul, .legal-card ol { margin: 10px 0 15px; padding-left: 24px; }
.legal-card li + li { margin-top: 7px; }
.legal-card strong { font-weight: 750; }
.legal-link { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.back { max-width: 920px; margin: 26px auto 0; text-align: center; }
.back a { color: var(--gold-3); font-size: 14px; font-weight: 750; text-decoration: none; }

.legal-table-wrap { margin: 18px 0 22px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 15px; }
.legal-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { color: #594b3c; background: rgba(231, 201, 119, .15); font-weight: 750; }
.legal-table td { color: #4f463d; }

.legal-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.legal-button {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 16px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 0;
  border-radius: 11px;
  background: var(--red);
  font: 750 13px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.legal-button:hover { background: var(--red-dark); }
.legal-button--secondary { color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.legal-button--secondary:hover { background: var(--paper); }

footer { padding: 28px 0 42px; border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.footer-inner a, .footer-inner button { color: var(--gold-3); text-decoration: none; }

@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .nav { min-height: 64px; }
  .brand-name { font-size: 18px; }
  .nav-links > a:first-child { display: none; }
  main { padding-top: 42px; }
  .legal-card { padding: 23px 19px; border-radius: 21px; }
  .legal-card section + section { margin-top: 30px; padding-top: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .legal-actions { align-items: stretch; flex-direction: column; }
}
