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

html,
body {
  width: 100%;
  overflow-x: clip;
}

:root {
  --primary: #3B5BDB;
  --primary-dark: #15803d;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --radius: 8px;
}

body {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

.policy-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.policy-nav-brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  text-decoration: none;
}

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

.policy-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

.policy-nav-links a:hover { color: var(--primary); }

.policy-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 48px 24px;
  text-align: center;
}

.policy-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.policy-hero p {
  opacity: 0.85;
  font-size: 15px;
}

.policy-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.policy-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.policy-toc h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.policy-toc ol {
  padding-left: 18px;
}

.policy-toc li {
  margin-bottom: 4px;
}

.policy-toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.policy-toc a:hover { text-decoration: underline; }

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-top: 16px;
  color: var(--text);
  border-top: 2px solid var(--primary);
  padding-top: 12px;
}

.policy-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}

.policy-section p {
  margin-bottom: 12px;
  color: var(--text);
}

.policy-section ul, .policy-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.policy-section li {
  margin-bottom: 6px;
}

.policy-callout {
  background: #f0fdf4;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
}

.policy-callout.warning {
  background: #fffbeb;
  border-color: #f59e0b;
}

.policy-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 40px 24px;
  text-align: center;
}

.policy-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.policy-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
}

.policy-footer-links a:hover { color: white; }

.policy-footer-copy {
  font-size: 12px;
  color: #64748b;
}

.effective-badge {
  display: inline-block;
  background: #f0fdf4;
  color: var(--primary);
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .policy-nav {
    padding: 8px 14px;
  }

  .policy-nav-links {
    gap: 10px 12px;
  }

  .policy-hero {
    padding: 34px 16px;
  }

  .policy-container {
    padding: 30px 16px 48px;
  }
}
