/* ===================================================
   Wayzuno Policy Pages - Accessible, Responsive Stylesheet
   =================================================== */

:root {
  --navy: #090d16;
  --ink: #0f172a;
  --text-muted: #475569;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --paper: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #0369a1;
  --blue-hover: #075985;
  --amber: #b45309;
  --amber-dark: #92400e;
  --amber-border: #fcd34d;
  --amber-pale: #fffbeb;
  --amber-badge: #fef3c7;
  --action-border: #fed7aa;
  --action-bg: #fff7ed;
  --action-text: #9a3412;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --focus-ring: 2px solid #0369a1;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
}

:root[data-theme="dark"] {
  --navy: #f8fafc;
  --ink: #f1f5f9;
  --text-muted: #cbd5e1;
  --muted: #94a3b8;
  --muted-light: #64748b;
  --paper: #0b1320;
  --white: #111e33;
  --line: #1e293b;
  --line-strong: #334155;
  --blue: #38bdf8;
  --blue-hover: #7dd3fc;
  --amber: #fbbf24;
  --amber-dark: #fde68a;
  --amber-border: #78350f;
  --amber-pale: #1c1508;
  --amber-badge: #291e0a;
  --action-border: #7c2d12;
  --action-bg: #1f100a;
  --action-text: #fdba74;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.policy-page {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  font-size: 16px;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

/* Header & Navigation */
.policy-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}

:root[data-theme="dark"] .policy-nav {
  background: rgba(17, 30, 51, 0.92);
}

.policy-brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.05em;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}

.policy-brand span {
  color: var(--blue);
}

.policy-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.policy-nav-links a:hover {
  color: var(--navy);
  background-color: rgba(15, 23, 42, 0.04);
}

.policy-nav-links a.active {
  color: var(--blue);
  background-color: rgba(3, 105, 161, 0.08);
}

.policy-nav-links a:focus-visible,
.policy-brand:focus-visible,
.policy-section a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

/* Shell */
.policy-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Hero Header */
.policy-hero {
  margin-bottom: 36px;
}

.policy-kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.policy-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(3, 105, 161, 0.08);
  color: var(--blue);
  border: 1px solid rgba(3, 105, 161, 0.2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--amber-badge);
  color: var(--amber-dark);
  border: 1px solid var(--amber-border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--navy);
}

.policy-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* Prominent Draft Warning Banner */
.draft-warning-banner {
  background: var(--amber-pale);
  border: 2px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.draft-warning-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.draft-warning-icon {
  font-size: 20px;
  line-height: 1;
}

.draft-warning-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--amber-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.draft-warning-banner p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--amber-dark);
}

.draft-warning-banner p:last-child {
  margin-bottom: 0;
}

/* Required Factual Inputs Checklist Card */
.factual-inputs-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.factual-inputs-card h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 8px;
}

.factual-inputs-card > p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.input-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.input-checklist li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.input-status-badge {
  display: inline-block;
  flex-shrink: 0;
  margin-top: 1px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--action-bg);
  color: var(--action-text);
  border: 1px solid var(--action-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input-detail strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 2px;
}

.input-detail span {
  color: var(--text-muted);
  font-size: 13px;
}

/* Policy Content Sections */
.policy-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.policy-section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.policy-section h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 24px 0 10px;
}

.policy-section p {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 15px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul,
.policy-section ol {
  margin: 0 0 18px;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.policy-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-section li strong {
  color: var(--ink);
}

.policy-section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.policy-section a:hover {
  color: var(--blue-hover);
}

/* Action Required Callout Box */
.action-required-box {
  background: var(--action-bg);
  border: 1px solid var(--action-border);
  border: 1px solid #ea580c;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}

.action-required-box strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--action-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.action-required-box p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--action-text);
  margin: 0;
}

/* Intra-Draft Navigation Strip */
.intra-draft-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  flex-wrap: wrap;
}

.intra-draft-nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: all 0.15s ease;
}

.intra-draft-nav a:hover {
  border-color: var(--blue);
  background: rgba(3, 105, 161, 0.04);
}

/* Policy Footer */
.policy-footer {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.policy-footer p {
  margin: 0 0 8px;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .policy-shell {
    padding: 24px 16px 60px;
  }

  .policy-nav {
    padding: 10px 16px;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .policy-nav-links {
    gap: 6px;
    flex-wrap: wrap;
  }

  .policy-nav-links a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .policy-section {
    padding: 22px 18px;
  }

  .factual-inputs-card {
    padding: 20px 16px;
  }

  .draft-warning-banner {
    padding: 18px 16px;
  }

  .intra-draft-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .intra-draft-nav a {
    justify-content: center;
  }
}
