/* ─── Pathlock — Shared Legal Page Styles ───────────────── */
:root {
  --bg-primary: #0b0b0d;
  --bg-secondary: #141418;
  --surface-primary: #1a1a1f;
  --surface-elevated: #23232a;

  --border-subtle: #2c2a31;
  --border-gold-soft: rgba(185, 150, 85, 0.3);

  --accent: #d6b36a;
  --accent-soft: #f0dca3;
  --accent-glow: rgba(214, 179, 106, 0.18);
  --accent-glow-strong: rgba(214, 179, 106, 0.35);

  --text-primary: #f7f0e3;
  --text-secondary: #afa69a;
  --text-muted: #706a62;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-soft);
}

/* ─── Marble Grain Texture ──────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── Nav ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 11, 13, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.nav-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-back:hover {
  color: var(--text-primary);
}

.nav-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Document Shell ────────────────────────────────────── */
.doc {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 28px 96px;
}

.doc-glow {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 480px;
  max-width: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(214, 179, 106, 0.06) 0%,
    rgba(11, 11, 13, 0) 65%
  );
  pointer-events: none;
  z-index: 0;
}

.doc-header {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.doc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.doc-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.doc-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.gold-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-gold-soft),
    var(--accent),
    var(--border-gold-soft),
    transparent
  );
  border: none;
  margin: 0 0 48px;
}

/* ─── Document Body ─────────────────────────────────────── */
.doc-body {
  position: relative;
  z-index: 1;
}

.doc-body section {
  margin-bottom: 44px;
}

.doc-body h2 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.doc-body h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transform: translateY(-2px);
}

.doc-body h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-soft);
  margin: 26px 0 12px;
}

.doc-body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.doc-body ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.doc-body li {
  position: relative;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding-left: 26px;
  margin-bottom: 12px;
}

.doc-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.doc-body li strong,
.doc-body p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.doc-body .legal-emphasis {
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Contact Card ──────────────────────────────────────── */
.contact-card {
  margin-top: 8px;
  background: var(--surface-primary);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card .row {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-card .row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 90px;
  padding-top: 3px;
}

.contact-card .row .v {
  color: var(--text-primary);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 28px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-nav a:hover {
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .doc {
    padding: 116px 20px 72px;
  }
  .doc-body h2 {
    flex-direction: column;
    gap: 6px;
  }
  .doc-body h2 .num {
    transform: none;
  }
  .contact-card {
    padding: 26px 22px;
  }
  .contact-card .row {
    flex-direction: column;
    gap: 2px;
  }
  .nav-inner {
    padding: 0 20px;
  }
}
