/* ============================================================
   Entry stylesheet for tietosuojaseloste.html
   Shares design tokens with the main page; everything else here
   is page-specific (different typography scale, narrower shell,
   underlined links, etc.) so we don't import base.css.
   ============================================================ */

@import url("./tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
a:hover { color: var(--teal-bright); text-decoration-color: var(--teal-bright); }

/* ----- Layout ----- */
.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

@media (max-width: 560px) {
  .shell { padding: 3rem 1.4rem 4rem; }
}

/* ----- Top bar (back link) ----- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.topbar-back {
  color: var(--ink-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s var(--ease);
}
.topbar-back:hover { color: var(--teal); }
.topbar-back .arrow { transition: transform 0.2s var(--ease); }
.topbar-back:hover .arrow { transform: translateX(-3px); }

.topbar-meta {
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ----- Headings ----- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "—";
  margin-right: 0.6em;
  opacity: 0.6;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 1.5rem 0;
  color: var(--ink);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink);
  margin: 3rem 0 1.2rem 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
h2:first-of-type { padding-top: 0; border-top: none; }

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 2rem 0 0.7rem 0;
}

p, ul {
  margin: 0 0 1.1rem 0;
  color: var(--ink-soft);
}

ul {
  padding-left: 1.4rem;
}
li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}
li::marker { color: var(--teal); }

strong { color: var(--ink); font-weight: 600; }

/* ----- Lead paragraph under H1 ----- */
.lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 3rem;
}

/* ----- Controller card ----- */
.controller {
  background: var(--paper-pure);
  border-left: 2px solid var(--teal);
  padding: 1.6rem 1.8rem;
  margin: 0 0 2rem 0;
  font-size: 0.95rem;
}
.controller p { margin: 0.3rem 0; }
.controller .name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* ----- Note box ----- */
.note {
  background: rgba(10, 82, 88, 0.05);
  border: 1px solid rgba(10, 82, 88, 0.18);
  padding: 1.1rem 1.3rem;
  margin: 1rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-radius: 2px;
}
.note strong { color: var(--teal-deep); }

/* ----- Footer ----- */
footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer a { color: var(--ink-muted); }
footer a:hover { color: var(--teal); }
