/* ===== PAGES.CSS — Auxiliary Pages (About, Privacy, Terms, Cookies) ===== */

:root {
  --bg-primary: #060D1A;
  --bg-secondary: #0A1628;
  --bg-card: #0D1E35;
  --accent: #00B4D8;
  --accent-light: #48CAE4;
  --accent-muted: rgba(0, 180, 216, 0.12);
  --text-primary: #E8EDF2;
  --text-secondary: #94A3B8;
  --text-muted: #4A5A6E;
  --border: #1A2E45;
  --border-light: #243A56;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
p { color: var(--text-secondary); line-height: 1.7; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-name span { color: var(--accent); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
}

.page-hero-inner {
  max-width: 760px;
}

.page-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 72px 0;
}

.page-content-inner {
  max-width: 760px;
}

.page-block {
  margin-bottom: 48px;
}

.page-block:last-child {
  margin-bottom: 0;
}

.page-block h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.page-block p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.page-block p:last-child { margin-bottom: 0; }

.page-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.page-block ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.page-block ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ===== EMPTY CONTENT PLACEHOLDER ===== */
.content-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

/* ===== POLICY CONTENT LINK STYLES ===== */
.policy-content a {
  color: var(--accent);
}

.policy-content a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.policy-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: var(--bg-card);
  color: var(--accent-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ===== IMAGE PLACEHOLDER ===== */
.image-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
}

/* ===== ABOUT US PAGE ===== */
.about-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.about-section:last-child {
  border-bottom: none;
}

.about-section-alt {
  background: var(--bg-secondary);
}

.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-two-col-reverse {
  direction: rtl;
}

.about-two-col-reverse > * {
  direction: ltr;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.about-text-col h2 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--text-primary);
}

.about-text-col p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-stat-row {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.about-photo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
}

/* About center layout */
.about-center-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.about-center-header h2 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.about-center-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* About principles grid */
.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-principle-illus {
  flex-shrink: 0;
}

.about-principle-card h3 {
  font-size: 1.0625rem;
  color: var(--text-primary);
  font-weight: 600;
}

.about-principle-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* About team facts */
.about-team-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.about-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-fact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.about-fact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-fact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-fact-text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.about-fact-text span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* About compliance */
.about-compliance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-compliance-illus {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-compliance-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-compliance-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.about-compliance-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-compliance-item-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-compliance-item-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .about-two-col { gap: 40px; }
  .about-compliance-layout { gap: 40px; }
  .about-principles-grid { gap: 24px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 48px 0 40px; }
  .page-content { padding: 48px 0; }
  .about-section { padding: 56px 0; }
  .about-two-col { grid-template-columns: 1fr; gap: 36px; }
  .about-two-col-reverse { direction: ltr; }
  .about-compliance-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-principles-grid { grid-template-columns: 1fr; }
  .about-stat-row { gap: 24px; }
  .about-compliance-illus { order: -1; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
  .about-stat-row { flex-wrap: wrap; }
}
