/* ──────────────────────────────────────────────────────────────────────────
   legal.css :: document / content pages (privacy, terms, support)
   Loaded alongside marketing.css, which supplies the design tokens, the
   self-hosted Familjen Grotesk @font-face, the nav/footer shell styling, and
   the ambient/grain/vignette atmosphere. This file adds the readable document
   column, prose typography, and the support form. These pages load no page-JS,
   so the fixed nav gets a permanent backdrop and content is lifted above the
   atmosphere with z-index here (rather than the JS-driven .content wrapper).
   ────────────────────────────────────────────────────────────────────────── */

/* Fixed nav has no scroll-JS on these pages → give it a permanent backdrop */
nav { background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }

/* Lift page content above the fixed atmosphere layers (ambient/vignette at z0) */
.doc, footer { position: relative; z-index: 2; }

/* ── Document column ── */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(116px, 16vh, 150px) 24px clamp(80px, 12vh, 130px); }
@media (min-width: 768px) { .doc { padding-left: 40px; padding-right: 40px; } }

.doc .eyebrow { margin-bottom: 18px; }
.doc h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; color: var(--text-primary); margin-bottom: 10px; }
.doc .updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); margin-bottom: clamp(40px, 6vh, 60px); }
.doc .subtitle { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--text-secondary); max-width: 52ch; margin-bottom: clamp(36px, 5vh, 52px); }

/* ── Prose ── */
.doc h2 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; color: var(--text-primary); margin: clamp(40px, 6vh, 56px) 0 16px; }
.doc h3 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin: 30px 0 12px; }
.doc p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 16px; }
.doc ul { margin: 0 0 18px; padding-left: 22px; font-size: 16px; line-height: 1.7; color: var(--text-secondary); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text-primary); font-weight: 600; }
.doc a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(45, 212, 255, 0.35); transition: border-color .2s; }
.doc a:hover { border-color: var(--cyan); }

/* ── Callout boxes (green = positive, .warn = amber caution) ── */
.doc .highlight { padding: 20px 24px; margin: 24px 0; border-radius: 14px; font-size: 15px; line-height: 1.7; color: var(--text-secondary); background: rgba(0, 255, 135, 0.045); border: 1px solid rgba(0, 255, 135, 0.16); }
.doc .highlight strong { color: var(--green); }
.doc .highlight.warn { background: rgba(255, 170, 51, 0.05); border-color: rgba(255, 170, 51, 0.18); }
.doc .highlight.warn strong { color: var(--amber); }

/* ── Tables ── */
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.doc th { text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; color: var(--text-tertiary); border-bottom: 1px solid var(--border); }
.doc td { padding: 10px 12px; color: var(--text-secondary); border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: top; }

/* ── Support: contact card + form ── */
.doc .email-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin: 0 0 40px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.doc .email-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; color: var(--text-tertiary); margin-bottom: 4px; }
.doc .email-address { font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--text-primary); border: none; }
.doc .email-address:hover { color: var(--cyan); }

.doc .form-section h2 { margin-top: 0; }
.doc .form-section .hint { font-size: 14px; color: var(--text-tertiary); margin-bottom: 28px; line-height: 1.5; }
.doc .field { margin-bottom: 20px; }
.doc label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.2px; }
.doc input[type="text"], .doc input[type="email"], .doc select, .doc textarea {
  display: block; width: 100%; padding: 13px 16px; background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 12px; color: var(--text-primary); font-family: var(--font-sans); font-size: 15px; outline: none;
  transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.doc input:focus, .doc select:focus, .doc textarea:focus { border-color: rgba(45, 212, 255, 0.5); }
.doc input::placeholder, .doc textarea::placeholder { color: var(--text-tertiary); }
.doc select { cursor: pointer; padding-right: 36px; background-repeat: no-repeat; background-position: right 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(245,245,247,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.doc textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.doc .btn-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px; padding: 14px 28px; border: 0; border-radius: 12px; cursor: pointer; background: var(--gradient-cool); color: #0A0A0F; font-family: var(--font-sans); font-size: 15px; font-weight: 600; box-shadow: 0 6px 24px rgba(45, 212, 255, 0.22); transition: transform .12s var(--ease-out), box-shadow .25s var(--ease-out); }
.doc .btn-send:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(45, 212, 255, 0.34); }
.doc .btn-send:active { transform: scale(0.98); }
.doc .divider { display: flex; align-items: center; gap: 16px; margin: 36px 0; color: var(--text-tertiary); font-size: 13px; }
.doc .divider::before, .doc .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.doc .direct-email { text-align: center; font-size: 14px; color: var(--text-tertiary); line-height: 1.6; }
