/* ===================================
   SANDONIS — Legal pages stylesheet
   Shared layout for tietosuoja / käyttöehdot / palautukset / evästeet.
   Reuses the design tokens defined in styles.css (loaded first).
   =================================== */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Back-to-home link above the title */
.legal__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.legal__back:hover { color: var(--gold); }

.legal__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* "Viimeksi päivitetty" line */
.legal__updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* A callout box for the "fill this in with real legal text" reminder.
   Remove or replace once the page holds finalised content. */
.legal__notice {
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.legal__notice strong { color: var(--gold); }

.legal__section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal__section:last-of-type {
  border-bottom: none;
}

.legal__section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.legal__section h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0 0.5rem;
}

.legal__section p,
.legal__section li {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.legal__section ul,
.legal__section ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
}
.legal__section li { margin-bottom: 0.35rem; }

/* Placeholder text — clearly greyed out so unfinished sections are obvious.
   Style hook only; delete the class from an element once it holds real copy. */
.legal__placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.legal__section a {
  color: var(--text-secondary);
  transition: color var(--transition);
}
.legal__section a:hover { color: var(--gold); }

/* Contact / data-controller detail block */
.legal__contact {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
}
.legal__contact dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
}
.legal__contact dt:first-child { margin-top: 0; }
.legal__contact dd { color: var(--text-primary); }

/* Footer legal links row (added to the existing .footer on every page) */
.footer__legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .footer__legal { justify-content: center; }
}
