/* Shared styles for the static legal pages (privacy.html, data-deletion.html).
   Mirrors the tokens and components in src/index.css, Header.tsx and Footer.tsx. */

:root {
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.8) 100%);
  --border-color: rgba(226, 232, 240, 0.9);
  --border-color-active: rgba(2, 132, 199, 0.5);

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.25);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  --header-bg: rgba(255, 255, 255, 0.92);
  --hero-glow: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  --text-gradient: linear-gradient(135deg, #0f172a 0%, #0284c7 60%, #2563eb 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header (Header.tsx) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1280px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Brand (logo lockup) */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.brand:hover {
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

/* Buttons (index.css .btn) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  color: var(--text-main);
  background: var(--bg-dark);
  border-color: var(--border-color-active);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 32px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translateX(-50%);
  background: var(--hero-glow);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--primary);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin: 18px 0 12px;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero .meta {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Content */
.content {
  max-width: 860px;
  padding-bottom: 80px;
}

.glass-panel {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 32px 40px;
}

.glass-panel + .glass-panel {
  margin-top: 24px;
}

.subtle-panel {
  background: var(--bg-card-subtle);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.subtle-panel h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 24px 0 6px;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose p + p {
  margin-top: 12px;
}

.prose strong {
  color: var(--text-main);
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 10px 0 10px 22px;
}

.prose li {
  margin: 6px 0;
}

.prose li > ul {
  margin-top: 6px;
}

mark {
  background: #fef3c7;
  color: var(--text-main);
  padding: 0 4px;
  border-radius: 4px;
}

/* Numbered steps (data-deletion.html) */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 16px 0 0 !important;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0 !important;
  padding: 14px 16px 14px 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Footer (Footer.tsx) */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: #f1f5f9;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer .brand-logo {
  height: 28px;
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 44px 0 24px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .prose h2 {
    font-size: 1.3rem;
  }

  .glass-panel {
    padding: 20px;
    border-radius: 16px;
  }

  .subtle-panel {
    padding: 18px 20px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .header-actions .btn-secondary {
    display: none;
  }
}
