/* ============================================================
   StreamRoomUA — pages.css
   Auxiliary pages: About, Privacy Policy, Terms, Cookie Policy
   Imports and extends the same CSS variables as main.css
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; background: #0A0F1A; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #0A0F1A;
  color: #E8EDF5;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --clr-bg: #0A0F1A;
  --clr-surface: #0E1A2B;
  --clr-border: #1A2D47;
  --clr-accent: #00B4D8;
  --clr-orange: #FF6B35;
  --clr-text: #E8EDF5;
  --clr-muted: #7A8CA8;
  --radius: 8px;
  --max-w: 1180px;
}

/* ── Utility ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.25;
  margin-bottom: 12px;
}
.divider { width: 48px; height: 3px; background: var(--clr-accent); margin: 20px 0; border-radius: 2px; }
.accent { color: var(--clr-accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-primary { background: var(--clr-accent); color: #0A0F1A; }
.btn-primary:hover { background: #00caf0; }
.btn-orange { background: var(--clr-orange); color: #fff; }
.btn-orange:hover { background: #ff855a; }

/* ── COOKIE MODAL (GDPR Customization) ──────────────────── */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 960;
  display: none;
}
.cookie-modal-overlay.show { display: block; }

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 970;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  display: none;
}
.cookie-modal.show { display: block; }
.cookie-modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 8px;
}
.cookie-modal-subtitle {
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cookie-option input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--clr-accent);
  flex-shrink: 0;
}
.cookie-option input[type="checkbox"]:disabled {
  cursor: default;
  opacity: 0.6;
}
.cookie-option-label {
  flex: 1;
  cursor: pointer;
}
.cookie-option-label strong {
  display: block;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 2px;
}
.cookie-option-desc {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.4;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
  flex-wrap: wrap;
}
.cookie-modal .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}
.cookie-modal-policy-link {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--clr-border);
  margin-top: 16px;
}
.cookie-modal-policy-link a {
  font-size: 0.85rem;
  color: var(--clr-accent);
  text-decoration: underline;
}

/* ── COOKIE BANNER ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 20px 24px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  display: none;
}
.cookie-banner.show { display: flex; }
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 200px;
}
.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--clr-text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.cookie-banner-text a {
  color: var(--clr-accent);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ── MAIN (body + adjust for cookie banner) ───────────────── */
body.has-cookie-banner { padding-bottom: 100px; }

/* Team photo styling */
.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  display: block;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .about-block-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .story-inner { flex-direction: column; }
  .story-visual { flex: none; width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-text { min-width: unset; }
}
@media (max-width: 480px) {
  .header-cta .btn { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
