/* ===== Policy Pages Styling - Matching Site Design System ===== */

/* Base Styles */
html {
  background: #010402;
  color: #f2f6f7;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  line-height: 1.7;
  font-size: clamp(16px, 1.5vw, 18px);
  background: #010402;
  color: #f2f6f7;
}

/* Typography */
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem 0;
  line-height: 1.1;
}

h2 {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 2.5rem 0 1rem 0;
  line-height: 1.2;
  position: relative;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 60px;
  height: 3px;
  background: #FFD600;
  border-radius: 2px;
}

/* Paragraphs and Text */
p {
  margin: 0 0 1.25rem 0;
  color: rgba(255, 255, 255, 0.9);
}

em {
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-size: 0.9em;
}

strong {
  color: #fff;
  font-weight: 600;
}

/* Lists */
ul, ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

li::marker {
  color: #FFD600;
}

/* Links */
a {
  color: #FFD600;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
  color: #ffde33;
}

a:hover::after,
a:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Highlight/Todo Spans */
.hl,
span[style*="background:#fffbcc"],
span[style*="background: #fffbcc"] {
  background: rgba(255, 214, 0, 0.2) !important;
  color: #FFD600 !important;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 214, 0, 0.3);
}

/* Code Blocks */
code {
  background: rgba(255, 255, 255, 0.08);
  color: #FFD600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 0.9em;
}

/* Buttons */
button {
  background: #FFD600;
  color: #0b0f13;
  border: 1px solid #FFD600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-block;
}

button:hover {
  background: #ffde33;
  border-color: #ffde33;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

button:active {
  transform: translateY(0);
}

/* Navigation Links */
p:has(a[href="/"]),
p:has(a[href^="/en/"]) {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Separator in link lists */
p a + *:not(a) {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 2rem 1.25rem;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
    margin-top: 2rem;
  }
  
  h2::before {
    width: 40px;
    height: 2px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  h1, h2, strong {
    color: black;
  }
  
  a {
    color: #0066cc;
  }
  
  h2::before {
    display: none;
  }
}
