/* Cerebro - Legal, Privacy, Contact Pages */
/* Clean, minimal stylesheet - no bloat! */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors - Light Theme (Default) */
  --bg-dark: #ffffff;
  --bg-panel: #f8fafc;
  --bg-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --border: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.05);

  /* Typography */
  --font-sans: 'Inter Tight', 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Righteous', cursive;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-dark: #0a0b0d;
  --bg-panel: #13151b;
  --bg-elevated: #1a1d25;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #0ea5e9;
  --accent-hover: #38bdf8;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  width: 100%;
  background: #0a0a0a;
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 15.5px;
  line-height: 1.6;
}

* {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] h1 {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 32px 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo h1 {
  font-family: 'Righteous', cursive;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  opacity: 0.95;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   USER ICON BUTTON
   ============================================ */
.user-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: inherit;
  text-decoration: none;
}

.user-icon-btn svg {
  color: currentColor;
}

.user-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

#selectedFlag {
  font-size: 20px;
  line-height: 1;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.language-wrapper {
  position: relative;
  display: inline-block;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: transparent !important;
  border: none;
  color: #f1f5f9 !important;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #ffffff !important;
}

.language-flag {
  font-size: 22px;
  line-height: 1;
  width: 28px;
  text-align: center;
}

.language-name {
  flex: 1;
  font-weight: 500;
}

/* ============================================
   PAGE HERO SECTIONS
   ============================================ */
.page-hero {
  position: relative;
  width: 100%;
  height: 420px;
  margin-top: 96px;
  overflow: hidden;
  background: #000;
}

.page-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
  filter: grayscale(20%);
}

.page-hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.7) 100%
  );
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero {
    height: 300px;
    margin-top: 80px;
  }
}

/* ============================================
   LEGAL/PRIVACY/CONTACT PAGES
   ============================================ */
.legal-page {
  position: relative;
  min-height: calc(100vh - 516px);
  background: #0a0a0a;
  padding: 80px 0 60px;
}

@media (max-width: 768px) {
  .legal-page {
    min-height: calc(100vh - 380px);
    padding: 60px 0 40px;
  }
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-container h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  text-align: center;
}

.legal-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-align: center;
}

.legal-container h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-container p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-container ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-container li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal-container a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-container a:hover {
  color: var(--accent-hover);
}

.legal-container strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Contact Page Specific */
.contact-item {
  margin-bottom: 32px;
}

.contact-item h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-item p {
  margin-bottom: 0;
}

/* Contact Page - Desktop Only */
@media (min-width: 769px) {
  .contact-item {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}
