/* Shared styles for legal pages — Noblesse Studios */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,500;1,600;1,700;1,900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #06060f;
  --bg2: #0c0c1e;
  --surface: #10102a;
  --violet: oklch(55% 0.25 290);
  --violet-light: oklch(72% 0.18 290);
  --violet-dim: oklch(40% 0.18 290);
  --lavender: oklch(88% 0.06 290);
  --white: #f4f2ff;
  --muted: oklch(65% 0.04 290);
  --border: oklch(30% 0.06 290);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: -300px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(55% 0.25 290 / 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* HEADER */
.legal-header {
  position: sticky; top: 0;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 10;
}
.legal-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.legal-logo-divider {
  width: 0.5px; height: 36px;
  background: var(--violet-light);
  opacity: 0.25;
}
.legal-logo-text { display: flex; flex-direction: column; gap: 2px; }
.legal-logo-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white); line-height: 1;
}
.legal-logo-sub {
  font-family: var(--font-body);
  font-size: 8px; font-weight: 500;
  letter-spacing: 0.48em; text-transform: uppercase;
  color: var(--violet-light); line-height: 1;
}
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.legal-back:hover { color: var(--white); border-color: var(--violet-light); }
.legal-back-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.legal-back:hover .legal-back-arrow { transform: translateX(-3px); }

/* HERO / TITLE */
.legal-hero {
  padding: 100px 48px 60px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.legal-tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.legal-tag::before {
  content: ''; display: block;
  width: 32px; height: 1px;
  background: var(--violet-light);
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.legal-title em { font-style: italic; color: var(--violet-light); }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.legal-meta-item { display: flex; align-items: center; gap: 8px; }
.legal-meta-item strong { color: var(--white); font-weight: 500; }

/* CONTENT */
.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 48px 120px;
  position: relative;
  z-index: 1;
}
.legal-toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 60px;
}
.legal-toc-title {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 18px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
}
.legal-toc li {
  counter-increment: toc;
  display: flex; align-items: baseline; gap: 14px;
  padding: 6px 0;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--violet-light);
  min-width: 22px;
}
.legal-toc a {
  color: var(--lavender);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.legal-toc a:hover { color: var(--white); }

.legal-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.legal-section:first-of-type { border-top: none; padding-top: 0; }
.legal-section-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--violet-light);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.legal-section-num::before {
  content: ''; display: inline-block;
  width: 24px; height: 1px;
  background: var(--violet-light);
  vertical-align: middle;
  margin-right: 12px;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--white);
}
.legal-section h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 28px 0 12px;
  color: var(--white);
}
.legal-section p {
  color: var(--lavender);
  margin-bottom: 16px;
  font-weight: 300;
  max-width: 720px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--violet-light);
  text-decoration: none;
  border-bottom: 1px solid var(--violet-dim);
  transition: color 0.2s, border-color 0.2s;
}
.legal-section a:hover { color: var(--white); border-bottom-color: var(--violet-light); }
.legal-section ul {
  list-style: none;
  margin: 16px 0 20px;
  padding-left: 0;
}
.legal-section ul li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--lavender);
  font-weight: 300;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 1px;
  background: var(--violet-light);
}
.legal-callout {
  background: oklch(55% 0.25 290 / 0.06);
  border-left: 2px solid var(--violet);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-callout p {
  font-size: 14px;
  color: var(--lavender);
  margin: 0;
}

/* FOOTER */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.legal-footer-links { display: flex; gap: 28px; }
.legal-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.legal-footer-links a:hover { color: var(--white); }

@media (max-width: 720px) {
  .legal-header { padding: 14px 20px; }
  .legal-hero { padding: 60px 20px 40px; }
  .legal-content { padding: 40px 20px 80px; }
  .legal-footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .legal-footer-links { flex-wrap: wrap; gap: 16px; }
  .legal-toc ol { grid-template-columns: 1fr; gap: 4px; }
  .legal-toc { padding: 20px 22px; }
  .legal-back span:not(.legal-back-arrow) { display: none; }
  .legal-back { padding: 10px 14px; }
  .legal-meta { gap: 14px; flex-direction: column; }
  .legal-section { padding: 30px 0; }
  .legal-section h2 { margin-bottom: 18px; }
}
