/* Shared styles for the legal pages (privacy policy and legal notice) */
:root {
    --brand: #a1c0ff;
    --brand-dark: #4f73c9;
    --text: #1f2a44;
    --muted: #5a6582;
    --bg: #f5f8ff;
    --line: #dde5f7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

/* Top bar with link back to the home page */
.topbar {
    background: var(--brand);
    padding: 18px 20px;
    text-align: center;
}

.topbar a {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
}

.updated {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 32px;
}

h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 40px 0 8px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 24px 0 4px;
}

p,
li {
    margin: 0 0 12px;
}

ul {
    padding-left: 20px;
}

a {
    color: var(--brand-dark);
}

/* Key/value block for company details */
dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0 0 12px;
}

dt {
    font-weight: 600;
}

dd {
    margin: 0;
}

/* Details still to be filled in before publishing */
.todo {
    background: #fff1b8;
    padding: 0 4px;
    border-radius: 3px;
}

footer {
    border-top: 1px solid var(--line);
    padding: 24px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

footer a {
    color: var(--muted);
}

/* Notice at the top of translated pages */
.translation-note {
    background: #e8efff;
    border-left: 3px solid var(--brand);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--muted);
    margin: -16px 0 28px;
}

/* Links to the other language versions */
.lang-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 12px;
}

.lang-links a {
    text-decoration: none;
}

.lang-links a:hover {
    text-decoration: underline;
}

.lang-links a[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 600px) {
    main {
        padding: 32px 16px 48px;
    }

    h1 {
        font-size: 1.6rem;
    }

    dl {
        grid-template-columns: 1fr;
        gap: 0;
    }

    dd {
        margin-bottom: 8px;
    }
}
