/**
 * Legal / policy page layout — aligned with index.html typography and chrome.
 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

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

/* Film grain — same treatment as index.html */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9998;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  position: relative;
  z-index: 1;
  padding-top: calc(160px + env(safe-area-inset-top, 0px));
  padding-bottom: 4rem;
  padding-inline: var(--page-pad-inline);
}

/* Matches .section + .container on index.html */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-dim);
  opacity: 0.9;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Matches .section-heading on index.html */
.wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  text-wrap: balance;
}

.updated {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--text-muted);
}

/* Matches .service-title / .reason-title on index.html */
.wrap h2 {
  font-family: var(--font-display);
  font-size: var(--fs-title-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 1.7rem;
  margin-bottom: 0.55rem;
  text-wrap: balance;
}

/* Matches .about-text p on index.html */
.wrap p {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.wrap li {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.wrap ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}

.wrap li + li {
  margin-top: 0.4rem;
}

.wrap strong {
  font-weight: 500;
  color: var(--text-primary);
}

.wrap a {
  color: var(--accent);
  text-decoration: none;
}

.wrap a:hover {
  text-decoration: underline;
}

.wrap h3 {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.wrap .legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  background: var(--legal-table-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.wrap .legal-table-wrap table {
  width: 100%;
  margin-bottom: 0;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.wrap .legal-table-wrap th,
.wrap .legal-table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

.wrap .legal-table-wrap th:not(:last-child),
.wrap .legal-table-wrap td:not(:last-child) {
  border-right: 1px solid var(--border);
}

.wrap .legal-table-wrap thead th {
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrap .legal-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.wrap code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--text-primary);
}
