:root {
    --brand: #14695c;
    --brand-dark: #0d4a40;
    --bg-main: #f4f7f6;
    --surface: #ffffff;
    --bg-sec: #e3f0ed;
    --text-main: #1f2d2a;
    --text-muted: #4a5854; /* 7.46:1 valkoisella — WCAG AAA */
    --border: #e1e8e6;
    --danger-bg: #FFF0F0;
    --danger-text: #D00000;
    --danger-border: #FFB3B3;
    --font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --radius: 14px;
    --on-brand: #ffffff;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg-main: #0d1412;
    --surface: #14201d;
    --bg-sec: #15302a;
    --text-main: #e6efec;
    --text-muted: #a4bdb7;
    --border: #25332f;
    --brand: #4db6a4;
    --brand-dark: #6fcaba;
    --danger-bg: rgba(208, 0, 0, 0.15);
    --danger-text: #ff6b6b;
    --danger-border: #7f1d1d;
    --on-brand: #08201c;
    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.wrap { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

header.page-head { text-align: center; padding: 24px 0 8px; }
.brand-link { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--brand); margin: 0 0 4px; letter-spacing: -0.01em; text-decoration: none; }
.page-icon { width: 40px; height: 40px; border-radius: 9px; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }
/* Pitkät yhdyssanat ("vastuuvapauslauseke") ylittivät MDR-laatikon 320–344 px:ssä. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
/* Leipätekstissä vain katkaisu, jos sana ei mahdu riville lainkaan (Linux-Chromium:
   "diabetesvastaanotolta" ylitti MDR-laatikon 320 px:ssä 3 px). */
p, li { overflow-wrap: break-word; }
@media (max-width: 400px) {
    /* Kolme sisäkkäistä täytettä (wrap, section, .mdr-box) veivät 320 px:stä 141 px. */
    .wrap { padding-left: 1rem; padding-right: 1rem; }
    section { padding-left: 16px; padding-right: 16px; }
    .mdr-box { padding: 1rem; }
}
h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0.5rem 0 0.25rem; }
.updated { color: var(--text-muted); font-size: 0.9rem; text-align: center; margin-bottom: 24px; }

.lang-switch { text-align: center; margin-bottom: 28px; font-size: 0.9rem; }
.lang-switch a { color: var(--brand); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; display: inline-flex; align-items: center; min-height: 44px; }
.lang-switch a[aria-current="page"], .lang-switch a:hover { background: var(--bg-sec); }
.lang-switch span { color: var(--text-muted); }

.summary { background: var(--bg-sec); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; }
.summary strong { color: var(--brand-dark); }

section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 24px 18px; margin-bottom: 16px; }

h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; letter-spacing: -0.01em; color: var(--brand-dark); }
section h2 { margin: 20px 0 10px; }
h3 { font-size: 1rem; margin: 1.25rem 0 0.4rem; }
p { margin: 0.6rem 0; }
ul { margin: 0.6rem 0 0.6rem 1.4rem; }
li { margin-bottom: 0.3rem; }

.disclaimer { border-left: 3px solid var(--brand); padding-left: 16px; color: var(--text-main); font-weight: 500; }

.mdr-box {
    background: var(--danger-bg);
    color: var(--text-main);
    border: 1px solid var(--danger-border);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
}
.mdr-box h2 { color: var(--danger-text); margin-top: 0; }

.back-home { text-align: center; margin-top: 28px; }
.back-home a { color: var(--text-muted); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem; }
.back-home a:hover { color: var(--brand); }

footer.page-foot { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 36px; line-height: 1.8; }
footer.page-foot a { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; }

/* Osto-, hinnasto- ja organisaatioehtosivut (osta, en/buy, hinnat, en/pricing,
   organisaatioehdot). Eivät vaikuta tietosuojaan eikä käyttöehtoihin. */
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    padding: 0.8rem 1.6rem; border-radius: 999px; border: none; cursor: pointer;
    background: var(--brand); color: var(--on-brand);
    font: 600 1rem/1.2 var(--font-family); text-decoration: none;
}
.btn:hover { text-decoration: none; background: var(--brand-dark); }
.buy-row { margin: 1.2rem 0; }
.notice { background: var(--bg-sec); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; }
.price-list { list-style: none; margin-left: 0; }
.price-list li { border-bottom: 1px solid var(--border); padding: 0.5rem 0; margin: 0; }
.price-list li:last-child { border-bottom: none; }
.price-list strong { white-space: nowrap; }
