/* Styles for the standalone legal pages (tietosuoja.html, privacy.html) */
:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --border: #e5e5e5;
  --text: #171717;
  --muted: #525252;
  --accent: #2563eb;
}
html.theme-night {
  --bg: #0a0a0a;
  --surface: #171717;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #60a5fa;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); transition: background-color .4s ease; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.2; }
a { color: var(--accent); }
a:hover { text-decoration: none; }

.top {
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
}
.top-inner, main, .foot-inner { max-width: 760px; margin: 0 auto; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { height: 40px; width: auto; display: block; }
html.theme-night .logo { filter: invert(1); }
.top-links { display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.top-links a { font-weight: 600; text-decoration: none; }
.top-links a:hover { text-decoration: underline; }

main { padding: 48px 16px 64px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.lead { font-size: 17px; color: var(--muted); }
h2 { font-size: 21px; margin: 40px 0 10px; }
p, ul, dl { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 14px;
}
.card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.card dt { color: var(--muted); }
.card dd { margin: 0; }
@media (max-width: 520px) {
  .card dl { grid-template-columns: 1fr; gap: 0; }
  .card dd { margin-bottom: 8px; }
}

.foot { border-top: 1px solid var(--border); padding: 24px 16px; color: var(--muted); font-size: 13px; }
