/* ===========================================================================
   Legal / document pages (privacy, terms, data-deletion) — premium dark,
   brand-consistent with the cinematic site. Served via the :site layout
   (Montserrat + meta) as extra_css. Shared IT + EN.
   =========================================================================== */
:root {
  --lg-bg: #06080c;
  --lg-text: #e7ecf3;
  --lg-text-2: #aab4c2;
  --lg-text-3: #6b7688;
  --lg-blue: #2bb6f0;
  --lg-blue-2: #0086c4;
  --lg-hair: rgba(255, 255, 255, 0.08);
  --lg-max: 760px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--lg-bg);
  color: var(--lg-text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

.legal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* subtle top glow, like the site hero */
.legal::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 340px;
  background: radial-gradient(80% 100% at 50% 0, rgba(0, 134, 196, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.legal__bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 4vw, 2rem);
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lg-hair);
}

.legal__brand img {
  height: 22px;
  width: auto;
  display: block;
}

.legal__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
}

.legal__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--lg-text-2);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.legal__nav a:hover {
  color: #fff;
}

.legal__lang {
  font-weight: 600;
  letter-spacing: 0.06em;
}

.legal__doc {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--lg-max);
  margin: 0 auto;
  flex: 1 0 auto;
  padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 1.5rem) 4rem;
}

.legal__doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: #fff;
}

.legal-updated {
  color: var(--lg-text-3);
  font-size: 0.85rem;
  margin: 0 0 2.5rem;
}

.legal__doc section {
  margin: 0 0 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--lg-hair);
}

.legal__doc section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal__doc h2 {
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
}

.legal__doc h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lg-text);
  margin: 1.4rem 0 0.6rem;
}

.legal__doc p {
  color: var(--lg-text-2);
  margin: 0 0 1rem;
}

.legal__doc ul {
  color: var(--lg-text-2);
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal__doc li {
  margin: 0 0 0.5rem;
}

.legal__doc li::marker {
  color: var(--lg-blue-2);
}

.legal__doc strong {
  color: var(--lg-text);
  font-weight: 600;
}

.legal__doc a {
  color: var(--lg-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 182, 240, 0.32);
  transition: border-color 0.2s ease;
  word-break: break-word;
}

.legal__doc a:hover {
  border-bottom-color: var(--lg-blue);
}

.legal__footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border-top: 1px solid var(--lg-hair);
}

.legal__footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1.1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.legal__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
}

.legal__footer-links a {
  color: var(--lg-text-2);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.legal__footer-links a:hover {
  color: #fff;
}

.legal__footer-legal {
  color: var(--lg-text-3);
  font-size: 0.78rem;
  width: 100%;
  margin: 0;
}

@media (max-width: 640px) {
  .legal__footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
