/* Where's My Car — legal page stilleri */
:root {
  --orange-50:  #FFF4EC;
  --orange-300: #FFA866;
  --orange-500: #FF6B1A;
  --orange-600: #E8530A;
  --orange-700: #C13F05;
  --orange-800: #8E2D02;
  --gradient-brand: linear-gradient(135deg, #FF8A3D 0%, #FF5A1F 100%);

  /* Light tema (default) */
  --bg:         #FAFAFA;
  --surface:    #FFFFFF;
  --surface-elev: #F4F4F5;
  --border:     #E4E4E7;
  --text:       #18181B;
  --text-muted: #71717A;
  --text-soft:  #3F3F46;
  --link:       #C13F05;
  --link-hover: #8E2D02;
  --glass:      rgba(255, 255, 255, 0.85);
  color-scheme: light;
}

:root {
  --accent-soft: var(--orange-50);
  --accent-fg:   var(--orange-700);
}
[data-theme="dark"] {
  --bg:         #0F0A07;
  --surface:    #1A120C;
  --surface-elev: #221813;
  --border:     #2E211A;
  --text:       #F5F1ED;
  --text-muted: #A8A29E;
  --text-soft:  #D4C8BC;
  --link:       #FFA866;
  --link-hover: #FFC79A;
  --glass:      rgba(15, 10, 7, 0.85);
  --accent-soft: rgba(255, 107, 26, 0.14);
  --accent-fg:   #FFA866;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0F0A07;
    --surface:    #1A120C;
    --surface-elev: #221813;
    --border:     #2E211A;
    --text:       #F5F1ED;
    --text-muted: #A8A29E;
    --text-soft:  #D4C8BC;
    --link:       #FFA866;
    --link-hover: #FFC79A;
    --glass:      rgba(15, 10, 7, 0.85);
    --accent-soft: rgba(255, 107, 26, 0.14);
    --accent-fg:   #FFA866;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.legal-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: var(--glass);
  z-index: 10;
}
.legal-header .inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.legal-brand-logo {
  width: 36px; height: 36px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 26, 0.25));
}
.legal-back {
  color: var(--link);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.legal-back:hover { color: var(--link-hover); }

.legal-theme-toggle {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), background 200ms;
}
.legal-theme-toggle:hover { transform: rotate(-12deg) scale(1.08); }

main.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent-fg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-weight: 800;
}
.legal-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 40px;
}
h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  margin: 40px 0 12px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  margin: 24px 0 8px;
  font-weight: 700;
}
p, .legal-body li {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-body li { margin-bottom: 6px; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--link-hover); }
strong { color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.legal-toc {
  margin: 40px 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.legal-toc h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.legal-toc a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
}
.legal-toc a:hover { color: var(--link); }

.legal-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.legal-footer a { color: var(--link); font-weight: 600; text-decoration: none; }
.legal-footer .legal-footer-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.legal-footer .legal-footer-links span { color: var(--border); }

.legal-langs {
  display: inline-flex;
  gap: 6px;
  background: var(--surface-elev);
  padding: 4px;
  border-radius: 999px;
}
.legal-langs a {
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.legal-langs a.is-active {
  background: var(--gradient-brand);
  color: white;
}

.legal-pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

@media print {
  .legal-header, .legal-back, .legal-footer { display: none; }
  main.legal { padding: 24px; }
  body { background: white; }
}
