:root {
  --bg: rgb(10, 10, 10);
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand img { display: block; width: 30px; height: 30px; }
.brand .wordmark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.back-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.22s ease;
}
.back-link:hover { color: var(--white); }
.back-link:focus-visible { outline: 1px solid rgba(255,255,255,0.5); outline-offset: 4px; }

/* ---------- Content ---------- */
.legal-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) 34px clamp(72px, 10vh, 120px);
}
.legal-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.legal-main h1 {
  font-family: "Host Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
}
.legal-updated {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 40px;
}
.legal-body { color: rgba(255, 255, 255, 0.78); }
.legal-body h2 {
  font-family: "Host Grotesk", sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 40px 0 14px;
}
.legal-body p { font-size: 16px; line-height: 1.7; margin-bottom: 18px; }
.legal-body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { font-size: 16px; line-height: 1.7; margin-bottom: 10px; padding-left: 4px; }
.legal-body li::marker { color: rgba(255, 255, 255, 0.4); }
.legal-body strong { color: var(--white); font-weight: 500; }
.legal-copyright {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.legal-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 24px 26px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(56px, 8vh, 88px) 0 0;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; }
.footer-logo-row img { display: block; width: 38px; height: 38px; }
.footer-wordmark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}
.footer-cols { display: flex; gap: clamp(48px, 8vw, 120px); }
.footer-col h3 {
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 22px;
}
.footer-col a {
  display: block;
  width: fit-content;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-top: 16px;
  transition: color 0.22s ease;
}
.footer-col a:first-of-type { margin-top: 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1080px;
  margin: clamp(48px, 7vh, 72px) auto 0;
  padding: 24px 34px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 809px) {
  .legal-nav { padding: 16px 20px; }
  .legal-main { padding-left: 20px; padding-right: 20px; }
  .footer-inner { padding: 0 20px; flex-direction: column; gap: 40px; }
  .footer-cols { gap: 48px; }
  .footer-bottom { padding: 24px 20px 28px; }
}
