:root {
  color-scheme: dark;
  --bg: #0d0908;
  --panel: #17100e;
  --text: #f4ece5;
  --muted: #aa9b91;
  --line: rgba(236, 205, 161, .15);
  --gold: #e7bb67;
  --copper: #b56d4d;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 70% 0%, rgba(181, 109, 77, .17), transparent 29rem),
    linear-gradient(145deg, #120d0b, var(--bg) 55%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 78px;
  padding: 10px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 9, 8, .82);
  backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.legal-brand img { width: 38px; height: 50px; object-fit: contain; }
.legal-brand span { display: grid; }
.legal-brand strong { font-family: Georgia, serif; font-weight: 400; letter-spacing: .05em; }
.legal-brand small { color: var(--muted); font-size: .52rem; letter-spacing: .12em; text-transform: uppercase; }

nav { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .7rem;
  white-space: nowrap;
}
nav a:hover,
nav a[aria-current="page"] { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, .03); }

main { width: min(920px, calc(100% - 34px)); margin: 0 auto; padding: clamp(64px, 10vw, 120px) 0 90px; }

.legal-hero {
  max-width: 780px;
  margin-bottom: 62px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .21em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(3.1rem, 9vw, 6.4rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}

.legal-hero > p:not(.eyebrow) {
  max-width: 680px;
  margin: 25px 0 18px;
  color: #c6b8af;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.legal-hero > span { color: #817269; font-size: .7rem; }

article {
  border-top: 1px solid var(--line);
}

section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 17px;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
}

p, li {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.82;
}

p { margin: 12px 0; }
ul { margin: 16px 0 0; padding-left: 21px; }
li + li { margin-top: 8px; }
strong { color: #e2d8d0; font-weight: 600; }
section a { color: var(--gold); text-underline-offset: 3px; }
code { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--gold); background: rgba(255, 255, 255, .035); }

.legal-callout {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(231, 187, 103, .22);
  border-radius: 10px;
  background: rgba(231, 187, 103, .045);
}

.legal-callout p { margin-bottom: 0; }

.legal-table {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.legal-table > div {
  min-height: 62px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: minmax(170px, .8fr) 2fr;
  align-items: center;
  gap: 22px;
}

.legal-table > div + div { border-top: 1px solid var(--line); }
.legal-table strong { font-size: .78rem; }
.legal-table span { color: var(--muted); font-size: .78rem; line-height: 1.55; }

footer {
  min-height: 90px;
  padding: 25px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: #796b63;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .68rem;
}

footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 760px) {
  .legal-header { position: relative; align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 14px; }
  nav { width: 100%; }
  main { padding-top: 50px; }
  .legal-table > div { grid-template-columns: 1fr; gap: 6px; }
  footer { align-items: flex-start; flex-direction: column; }
}
