/* Clanry legal pages — shared styles matching the main site */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --acid: #b9ff3a;
  --text: #f2f2f2;
  --muted: #808080;
  --dim: #4a4a4a;
  --border: #252525;
  --danger: #ff3b3b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: clip;
}

a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==== HEADER ==== */
.page-nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.page-nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.page-logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1;
  text-decoration: none;
}
.page-logo:hover { text-decoration: none; color: var(--text); }
.page-logo .dot { color: var(--acid); }

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.page-back:hover {
  color: var(--text);
  border-color: var(--muted);
  text-decoration: none;
}

/* ==== MAIN ==== */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}
.section-label .num { color: var(--acid); }
.section-label .dash {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--border);
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 24px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
  font-variant-numeric: tabular-nums;
}
.page-meta .dot-sep { color: var(--dim); }

.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 56px;
  max-width: 680px;
}

h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 72px 0 18px;
  font-variant-numeric: tabular-nums;
}
h2 .num { color: var(--acid); margin-right: 12px; }

h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin: 12px 0 18px;
}

h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 28px 0 8px;
}

p { font-size: 15px; line-height: 1.72; color: var(--text); margin: 12px 0; }

ul, ol { padding-left: 20px; margin: 12px 0; }
li { font-size: 15px; line-height: 1.72; color: var(--text); margin: 6px 0; }

strong { color: var(--text); font-weight: 600; }
em { font-style: normal; color: var(--acid); }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--acid);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 28px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 10px;
  display: block;
}

.callout.danger { border-left-color: var(--danger); }
.callout.danger .callout-label { color: var(--danger); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}

/* ==== FOOTER ==== */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px 32px;
  margin-top: 40px;
}
.page-footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.page-footer .copyright { color: var(--acid); }
.page-footer .links { color: var(--dim); display: flex; gap: 12px; flex-wrap: wrap; }
.page-footer .links a { color: var(--dim); }
.page-footer .links a:hover { color: var(--text); text-decoration: none; }
.page-footer .disclaimer { color: var(--dim); }

/* ==== 404 SPECIFIC ==== */
.oops-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 100px 32px 120px;
  text-align: left;
}
.oops-big {
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: var(--acid);
  margin: 0 0 16px;
  font-variant-numeric: tabular-nums;
}
.oops-headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 20px;
}
.oops-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 36px;
}
.oops-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--acid);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s;
}
.oops-cta:hover { transform: translateY(-1px); text-decoration: none; color: #000; }

/* ==== RESPONSIVE ==== */
@media (max-width: 640px) {
  .page-nav-inner { padding: 18px 20px; }
  main { padding: 48px 20px 72px; }
  .oops-hero { padding: 72px 20px 96px; }
  h3 { font-size: 21px; }
  .lede { font-size: 16px; }
  .page-footer-inner { flex-direction: column; align-items: flex-start; }
}
