/* Gemensam stil för undersidorna (integritetspolicy och villkor) */
:root {
    --green: #2D5F3F;
    --green-light: #4A8B5C;
    --green-bright: #6FCF97;
    --black: #0A0A0A;
    --gray: #333333;
    --gray-light: #666666;
    --white: #FAFAFA;
    --accent: #E8F5E9;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
}

nav {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(20px);
    padding: 1.5rem 5%;
    z-index: 10;
    border-bottom: 1px solid rgba(45, 95, 63, 0.1);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--green);
}

.nav-back {
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(45, 95, 63, 0.25);
    border-radius: 999px;
}

.nav-back:hover {
    border-color: var(--green);
}

html {
    scroll-behavior: smooth;
}

main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 5rem 5% 6rem;
}

.doc-body {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
}

.doc-text {
    max-width: 52rem;
}

.toc {
    position: sticky;
    top: 7rem;
    padding-top: 2.75rem;
}

.toc-title {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.toc ol {
    list-style: none;
    border-left: 1px solid rgba(45, 95, 63, 0.18);
}

.toc a {
    display: block;
    padding: 0.35rem 0 0.35rem 1rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
}

.toc a:hover {
    color: var(--green);
    border-left-color: var(--green);
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.updated {
    color: var(--gray-light);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.lead {
    max-width: 46rem;
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.8;
}

.doc-head {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(45, 95, 63, 0.18);
}

h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 2.75rem 0 0.75rem;
    scroll-margin-top: 7rem;
}

main p,
main li {
    color: var(--gray);
    line-height: 1.8;
}

.doc-text p,
.doc-text li {
    font-size: 1.05rem;
}

main p + p {
    margin-top: 0.9rem;
}

main ul {
    margin: 0.9rem 0 0 1.25rem;
}

main li + li {
    margin-top: 0.4rem;
}

main ul + p {
    margin-top: 0.9rem;
}

main a {
    color: var(--green);
    font-weight: 500;
}

main a:hover {
    color: var(--black);
}

footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 5%;
    text-align: center;
    font-size: 0.9rem;
}

footer .logo {
    display: block;
    color: var(--white);
    margin-bottom: 1rem;
}

footer p + p {
    margin-top: 0.4rem;
}

.footer-info {
    margin-top: 1.5rem;
}

.footer-info span {
    white-space: nowrap;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

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

.footer-social {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: var(--green-bright);
    border-color: var(--green-bright);
    color: var(--black);
    text-decoration: none;
}

.footer-social a:focus-visible {
    outline: 2px solid var(--green-bright);
    outline-offset: 3px;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin: 1.5rem 0;
}

@media (max-width: 1100px) {
    .doc-body {
        display: block;
    }

    .toc {
        display: none;
    }
}

@media (max-width: 640px) {
    main {
        padding: 3rem 5% 4rem;
    }

    .nav-doc {
        display: none;
    }
}

/* Vanliga frågor */
.faq-text h3 {
    margin: 2rem 0 0.6rem;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--black);
    scroll-margin-top: 7rem;
}

.faq-text h2 + h3 {
    margin-top: 1.25rem;
}

/* Exempelbilder med och utan spridningstillstånd (Vanliga frågor) */
.tillstand-exempel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.25rem;
    max-width: 40rem;
    margin: 1.5rem 0 1.25rem;
}

.tillstand-exempel .tillstand-rubrik {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid currentColor;
}

.tillstand-nej {
    color: var(--green);
}

.tillstand-ja {
    color: var(--gray);
}

.tillstand-exempel figure {
    margin: 0;
}

.tillstand-exempel img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: var(--accent);
}

.tillstand-exempel figcaption {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.4;
}

@media (max-width: 640px) {
    .tillstand-exempel {
        gap: 0.75rem 0.75rem;
    }

    .tillstand-exempel .tillstand-rubrik {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    .tillstand-exempel figcaption {
        font-size: 0.85rem;
    }
}
