body { line-height: 1.7; }

/* NAV (sticky, legal variant) */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 48px;
  background: rgba(10,8,6,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--cream-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--cream); }
.nav-links .nav-cta { padding: 10px 24px; border-radius: 8px; background: var(--terracotta-dim); color: white; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.nav-links .nav-cta:hover { background: var(--terracotta-dim); box-shadow: 0 4px 14px rgba(212,104,48,0.35); }

/* DOC */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 80px 48px 120px; }
.doc-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta); margin-bottom: 18px; font-weight: 700; }
.doc-title { font-family: 'Libre Baskerville', serif; font-size: clamp(36px, 5vw, 52px); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.01em; }
.doc-org { font-family: 'Manrope', sans-serif; font-size: 18px; color: var(--cream-dim); margin-bottom: 24px; font-weight: 400; }
.doc-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cream-muted); letter-spacing: 0.5px; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--border-subtle); }

.doc-body p { font-size: 15.5px; color: var(--cream-dim); line-height: 1.85; margin-bottom: 18px; }
.doc-body p strong { color: var(--cream); font-weight: 600; }
.doc-body h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-top: 56px;
  margin-bottom: 20px;
  line-height: 1.25;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.doc-body h3 { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; color: var(--cream); margin-top: 32px; margin-bottom: 12px; letter-spacing: 0.1px; }
.doc-body ul { margin: 10px 0 20px 0; padding-left: 0; list-style: none; }
.doc-body ul li { font-size: 15px; color: var(--cream-dim); line-height: 1.8; margin-bottom: 10px; padding-left: 22px; position: relative; }
.doc-body ul li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 6px; height: 1px; background: var(--terracotta); opacity: 0.7; }
.doc-body a { color: var(--terracotta-glow); text-decoration: none; border-bottom: 1px solid rgba(212,104,48,0.3); transition: border-color 0.2s; }
.doc-body a:hover { border-bottom-color: var(--terracotta-glow); }

.doc-callout { margin: 24px 0 28px; padding: 22px 26px; background: rgba(212,104,48,0.06); border-left: 3px solid var(--terracotta); border-radius: 4px; }
.doc-callout p { margin-bottom: 0; font-size: 14.5px; color: var(--cream-dim); }

/* Wide variant for table-heavy pages (e.g. subprocessors) */
.doc-wrap.wide { max-width: 1200px; }
.doc-wrap.wide .doc-title { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 36px; }

/* Tables (subprocessor inventory, etc.) */
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 36px;
  font-size: 14px;
  color: var(--cream-dim);
  table-layout: fixed;
}
.doc-body th, .doc-body td { word-wrap: break-word; overflow-wrap: anywhere; }
.doc-body th:nth-child(1), .doc-body td:nth-child(1) { width: 22%; }
.doc-body th:nth-child(2), .doc-body td:nth-child(2) { width: 58%; }
.doc-body th:nth-child(3), .doc-body td:nth-child(3) { width: 20%; }
.doc-body thead th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: bottom;
}
.doc-body tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.65;
}
.doc-body tbody tr:last-child td { border-bottom: none; }
.doc-body td:nth-child(1) { color: var(--cream); font-weight: 600; }
.doc-body td:nth-child(3) { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cream-muted); }

@media (max-width: 768px) {
  .doc-body table { display: block; table-layout: auto; width: 100%; }
  .doc-body thead { display: none; }
  .doc-body tbody, .doc-body tbody tr { display: block; }
  .doc-body tbody tr { border-bottom: 1px solid var(--border-subtle); padding: 14px 0; }
  .doc-body tbody tr:last-child { border-bottom: none; }
  .doc-body td:nth-child(1),
  .doc-body td:nth-child(2),
  .doc-body td:nth-child(3) {
    display: block;
    width: 100%;
    border-bottom: none;
    padding: 4px 0;
    overflow-wrap: normal;
    word-break: normal;
  }
  .doc-body td:nth-child(1) { font-size: 15px; margin-bottom: 4px; }
  .doc-body td:nth-child(3) { margin-top: 6px; }
  .doc-body td:nth-child(3)::before { content: 'Country: '; color: var(--cream-muted); opacity: 0.7; margin-right: 4px; }
}
.doc-legal-block {
  margin: 18px 0;
  padding: 18px 22px;
  background: rgba(44,36,24,0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--cream-dim);
  letter-spacing: 0.1px;
}
.doc-contact { margin-top: 40px; padding: 24px 28px; background: rgba(44,36,24,0.4); border: 1px solid var(--border-subtle); border-radius: 10px; }
.doc-contact p { font-size: 14px; margin-bottom: 6px; }

/* FOOTER */
footer { padding: 48px 48px 36px; border-top: 1px solid var(--border-subtle); background: var(--base-deepest); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  color: var(--cream-muted);
}
.footer-inner a { color: var(--cream-muted); text-decoration: none; margin-left: 20px; transition: color 0.2s; }
.footer-inner a:hover { color: var(--cream); }

@media (max-width: 768px) {
  nav.site-nav { padding: 14px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .doc-wrap { padding: 56px 24px 96px; }
  .doc-body h2 { font-size: 22px; margin-top: 44px; }
  footer { padding: 40px 24px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner a { margin-left: 0; margin-right: 16px; }
}
