/* anonym.legal SUBSITES — Shared CSS v1.0.0 */
/* Brand-aligned design system matching anonym.legal identity */

:root {
  --brand-blue: #0066CC;
  --brand-blue-light: #3399FF;
  --brand-blue-dark: #004C99;
  --brand-success: hsl(148, 70%, 27%);
  --brand-warning: hsl(33, 100%, 30%);
  --brand-error: #C92A2A;
  --bg: #ffffff;
  --bg-secondary: hsl(240, 4.8%, 95.9%);
  --bg-card: #ffffff;
  --text: hsl(240, 10%, 3.9%);
  --text-muted: hsl(240, 3.8%, 42%);
  --border: hsl(240, 5.9%, 82%);
  --radius: 0.5rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(240, 10%, 3.9%);
    --bg-secondary: hsl(240, 3.7%, 15.9%);
    --bg-card: hsl(240, 6%, 10%);
    --text: hsl(0, 0%, 98%);
    --text-muted: hsl(240, 5%, 64.9%);
    --border: hsl(240, 3.7%, 22%);
  }
}

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

html {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body { min-height: 100vh; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { max-width: 65ch; color: var(--text-muted); }
a { color: var(--brand-blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-blue-dark); }
strong { font-weight: 600; color: var(--text); }
code { font-family: var(--font-mono); font-size: 0.875em; background: var(--bg-secondary); padding: 0.15em 0.4em; border-radius: 4px; }
pre { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-secondary); }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, rgba(0,102,204,0.04) 0%, transparent 50%, rgba(51,153,255,0.04) 100%);
  text-align: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; max-width: 48ch; margin: 0 auto 2rem; }
.hero .badge {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand-blue); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-secondary); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.0625rem; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.9375rem; }
.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,102,204,0.08);
  color: var(--brand-blue);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Stats */
.stat { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--brand-blue); line-height: 1; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
@media (prefers-color-scheme: dark) {
  .nav { background: rgba(10,10,15,0.95); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-weight: 600; font-size: 1.125rem; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--brand-blue); color: #fff !important; padding: 0.375rem 1rem; border-radius: var(--radius); font-size: 0.8125rem; }
.nav-cta:hover { background: var(--brand-blue-dark); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text); }
@media (max-width: 768px) {
  .nav-toggle { display: block; font-size: 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0.75rem; }
  .nav-links.open { display: flex; }
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--brand-blue); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.375rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th { text-align: left; font-weight: 600; padding: 0.75rem 1rem; border-bottom: 2px solid var(--border); }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
tr:hover td { background: var(--bg-secondary); }

/* Comparison table */
.vs-table td:first-child { font-weight: 600; white-space: nowrap; }
.check { color: var(--brand-success); }
.cross { color: var(--brand-error); }

/* Feature list */
.feature-list { list-style: none; }
.feature-list li { padding: 0.5rem 0; padding-left: 1.75rem; position: relative; }
.feature-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-success); font-weight: 700; }

/* Badges */
.badge-sm { display: inline-block; font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-blue { background: rgba(0,102,204,0.1); color: var(--brand-blue); }
.badge-green { background: rgba(22,163,74,0.1); color: var(--brand-success); }
.badge-amber { background: rgba(245,158,11,0.1); color: hsl(33, 100%, 40%); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0 auto 1.5rem; }
.cta-banner .btn { background: #fff; color: var(--brand-blue); }
.cta-banner .btn:hover { background: rgba(255,255,255,0.9); }

/* Schema / JSON-LD visual */
.entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.entity-tag { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.375rem 0.625rem; font-size: 0.8125rem; font-family: var(--font-mono); text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* RTL support */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .feature-list li { padding-left: 0; padding-right: 1.75rem; }
[dir="rtl"] .feature-list li::before { left: auto; right: 0; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }

/* Print */
@media print {
  .nav, .footer, .cta-banner { display: none; }
  .section { padding: 1rem 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #666; }
}

/* Accessibility */
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Video Facade — lazy-load YouTube embed */
.video-facade {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.video-facade:hover img { opacity: 0.75; }
.video-facade:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-btn span {
  width: 4rem;
  height: 4rem;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.video-facade:hover .video-play-btn span { transform: scale(1.1); }
.video-play-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: white;
  margin-left: 3px;
}
.video-facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* blurgate.eu footer compatibility */
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-bottom: 0.75rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.375rem; }
footer:not(.footer) { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 3rem 0 2rem; font-size: 0.875rem; color: var(--text-muted); }
footer:not(.footer) a { color: var(--text-muted); }
footer:not(.footer) a:hover { color: var(--brand-blue); }

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}
