/* ==========================================================================
   Opscadia — legal.css
   Shared styles for Termini, Privacy, Cookie pages (light theme).
   ========================================================================== */

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

:root {
  --purple:       #7c3aed;
  --purple-light: #8b5cf6;
  --text:         #0f0e1a;
  --text-muted:   rgba(15,14,26,0.50);
  --surface:      rgba(0,0,0,0.03);
  --border:       rgba(0,0,0,0.09);
  --container:    760px;
}

html, body {
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background: #f5f3ff;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139,92,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 110%, rgba(99,102,241,0.07) 0%, transparent 55%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

/* ---------- Header light-theme overrides ---------- */
.site-header__inner {
  background: rgba(245,243,255,0.75) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled .site-header__inner {
  background: rgba(245,243,255,0.9) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08) !important;
}
.site-header__inner .brand__name,
.site-header__inner .nav-link,
.site-header__inner .btn--login {
  color: var(--text) !important;
}
.site-header__inner .btn--ghost {
  color: var(--text) !important;
  border-color: rgba(0,0,0,0.15) !important;
}
.site-header__inner .btn--ghost:hover {
  background: rgba(0,0,0,0.05) !important;
}
.nav-link:hover { color: var(--text) !important; background: rgba(0,0,0,0.05) !important; }

/* ---------- Main layout ---------- */
.legal-main {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ---------- Hero ---------- */
.legal-hero {
  padding: 1.75rem 1.25rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.legal-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.legal-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}
.legal-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.legal-hero__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Article body ---------- */
.legal-article {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.legal-article h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 2.5rem 0 0.625rem;
  color: var(--text);
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
}
.legal-article h2:first-child { margin-top: 0; }

.legal-article h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.375rem;
  color: var(--text);
}

.legal-article p {
  margin: 0 0 0.875rem;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 0.875rem;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-article li { margin-bottom: 0.25rem; }

.legal-article strong { font-weight: 600; }

.legal-article .highlight-box {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- Footer ---------- */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.legal-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.legal-footer__sep { opacity: 0.5; }
.legal-footer__link {
  color: var(--text-muted);
  transition: color 0.2s;
}
.legal-footer__link:hover {
  color: var(--purple);
  text-decoration: none;
}
.legal-footer__link--active {
  color: var(--purple);
  font-weight: 500;
}

/* ---------- Back link ---------- */
.legal-back {
  display: block;
  text-align: center;
  padding: 0 1.25rem 3rem;
}
.legal-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.legal-back__link:hover { color: var(--text); text-decoration: none; }
.legal-back__link svg { width: 1rem; height: 1rem; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .legal-article { padding: 2.5rem 2rem; }
  .legal-hero     { padding: 2rem 2rem 2rem; }
}
