/* =========================================================
   NetTheoryMonitor — Auxiliary Pages Stylesheet
   (About Us, Privacy Policy, Terms of Service, Cookie Policy)
   ========================================================= */

/* Import tokens from parent */
:root {
  --color-bg:        #0B1120;
  --color-surface:   #111827;
  --color-surface2:  #1a2540;
  --color-border:    #1e2d48;
  --color-teal:      #00C9A7;
  --color-blue:      #0A84FF;
  --color-text:      #E2E8F0;
  --color-muted:     #8899AA;
  --color-white:     #FFFFFF;
  --radius:          8px;
  --radius-lg:       14px;
  --font-sans:       'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Mono', monospace;
  --max-w:           1200px;
  --max-w-prose:     760px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--color-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

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

/* === SHARED HEADER === */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo img { width: 44px; height: 44px; }
.site-logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
}
.site-logo-name span { color: var(--color-teal); }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}
.btn-outline:hover { background: rgba(0,201,167,0.1); text-decoration: none; }
.btn-primary {
  background: var(--color-teal);
  color: #0B1120;
  border-color: var(--color-teal);
}
.btn-primary:hover { background: #00b090; text-decoration: none; }

/* === PAGE HERO (banner for inner pages) === */
.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 64px 0 52px;
}
.page-hero .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(0,201,167,0.1);
  border: 1px solid rgba(0,201,167,0.25);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 580px;
  line-height: 1.7;
}

/* === ABOUT PAGE === */
.about-section { padding: 72px 0; }
.about-section + .about-section { padding-top: 0; }
.about-section--alt { background: var(--color-surface); }

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-intro-text h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.about-intro-text p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.about-visual {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  flex-direction: column;
  gap: 12px;
}
.about-visual svg { opacity: 0.2; width: 52px; height: 52px; }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--color-white); margin-bottom: 10px; }
.value-card p { font-size: 0.88rem; color: var(--color-muted); line-height: 1.6; }
.value-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-teal);
  opacity: 0.3;
  margin-bottom: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
}
.team-photo svg { opacity: 0.2; width: 40px; height: 40px; }
.team-card-body { padding: 20px; }
.team-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--color-white); margin-bottom: 4px; }
.team-card p { font-size: 0.82rem; color: var(--color-muted); }

/* === POLICY PAGES (Privacy, Terms, Cookie) === */
.policy-wrapper {
  padding: 72px 0;
}
.policy-empty {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.policy-empty svg { opacity: 0.2; width: 48px; height: 48px; margin: 0 auto 16px; }

/* === SHARED FOOTER === */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--color-muted); }
.footer-col ul li a:hover { color: var(--color-teal); text-decoration: none; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--color-muted); }
.footer-bottom-links a:hover { color: var(--color-teal); text-decoration: none; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .about-values,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .about-values,
  .team-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-content {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}
.cookie-banner-content strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-white);
}
.cookie-banner-content p {
  margin: 0;
}
.cookie-banner-content a {
  color: var(--color-teal);
  text-decoration: underline;
}
.cookie-banner-content a:hover {
  color: #00b090;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.cookie-banner .btn {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.visible {
  display: flex;
}
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.cookie-modal-content {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}
.cookie-modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:hover {
  color: var(--color-text);
}
.cookie-modal-body {
  padding: 24px;
}
.cookie-option {
  margin-bottom: 24px;
}
.cookie-option:last-child {
  margin-bottom: 0;
}
.cookie-option-header {
  display: flex;
  gap: 12px;
}
.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.cookie-option label {
  cursor: pointer;
  flex: 1;
}
.cookie-option label strong {
  display: block;
  color: var(--color-white);
  margin-bottom: 4px;
}
.cookie-option label p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}
.cookie-modal-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-modal-link {
  font-size: 0.85rem;
  color: var(--color-teal);
  text-decoration: underline;
}
.cookie-modal-link:hover {
  color: #00b090;
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
}
.cookie-modal-buttons .btn {
  padding: 9px 20px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: auto;
    top: 0;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .cookie-banner-actions .btn {
    flex: 1;
    min-width: 120px;
  }
  .cookie-modal-footer {
    flex-direction: column;
  }
  .cookie-modal-buttons {
    width: 100%;
  }
  .cookie-modal-buttons .btn {
    flex: 1;
  }
}
