/* Inner content pages (om oss, så fungerar det, priser, kontakt). They
   reuse the homepage's sections, cards and grid from home.css; this file
   only adds the page head and the few pieces the homepage doesn't have. */

/* Page head: the inner-page counterpart of the homepage hero */
.page-head {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + clamp(40px, 7vw, 96px)) 0
        clamp(56px, 7vw, 96px);
    background: linear-gradient(180deg, var(--white) 0%, var(--beige) 100%);
    border-bottom: 1px solid var(--line);
}
.page-head .container {
    position: relative;
    z-index: 1;
}
.page-head h1 {
    margin-bottom: 22px;
}
.page-head .subtitle {
    margin-bottom: 0;
}
.page-head .hero-actions {
    margin-top: 34px;
}
.page-head .key-motif {
    opacity: 0.12;
}

/* Prices */
.price-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 56px;
}
.price-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(30px, 3.6vw, 52px);
}
.price-card h3 {
    margin-bottom: 18px;
}
.price-amount {
    font-family: var(--serif);
    font-size: clamp(44px, 4.4vw, 60px);
    line-height: 1;
    color: var(--ink);
}
.price-unit {
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.price-list {
    list-style: none;
    margin: 30px 0 34px;
    flex: 1;
}
.price-list li {
    position: relative;
    padding: 11px 0 11px 28px;
    border-top: 1px solid var(--line);
    font-size: 15.5px;
    color: var(--text);
}
.price-list li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--khaki);
}
.price-card .btn {
    align-self: flex-start;
}

/* FAQ */
.faq {
    margin-top: 48px;
    border-bottom: 1px solid var(--line);
}
.faq details {
    border-top: 1px solid var(--line);
}
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    font-family: var(--serif);
    font-size: clamp(20px, 1.7vw, 23px);
    line-height: 1.3;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 300;
    color: var(--khaki);
    transition: transform 0.2s;
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}
.faq details p {
    padding: 0 0 24px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Contact block */
.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(28px, 3.4vw, 44px);
}
.contact-card dl {
    display: grid;
    gap: 22px;
}
.contact-card dt {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-card dd {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
}
.contact-card dd a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--khaki);
}

@media (max-width: 900px) {
    .price-cards {
        grid-template-columns: 1fr;
    }
}

/* home.css spaces out the standalone ".section .link" call-to-action
   links; a link inside running text must stay inline. */
.section p .link,
.section dd .link {
    display: inline;
    margin-top: 0;
}

/* Legal pages (integritetspolicy, villkor, cookies): a sticky table of
   contents beside a narrow reading column. These are long running texts,
   so the measure is kept tighter than on the marketing pages and every
   numbered section can be linked to directly. */
.legal {
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}
.legal-toc ul {
    list-style: none;
}
.legal-toc li {
    margin-bottom: 10px;
}
.legal-toc a {
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.legal-toc a:hover {
    color: var(--ink);
}
.legal-updated {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.legal-body > section + section {
    margin-top: clamp(44px, 5vw, 64px);
    padding-top: clamp(36px, 4vw, 48px);
    border-top: 1px solid var(--line);
}
.legal-body h2 {
    font-size: clamp(26px, 2.6vw, 34px);
    margin-bottom: 18px;
    scroll-margin-top: calc(var(--header-height) + 24px);
}
.legal-body h3 {
    font-size: 20px;
    margin: 28px 0 10px;
}
.legal-body p,
.legal-body ul,
.legal-body ol {
    max-width: 68ch;
}
.legal-body ul,
.legal-body ol {
    margin: 14px 0 0 22px;
}
.legal-body li {
    margin-bottom: 8px;
}
.legal-body li::marker {
    color: var(--khaki);
}
.legal-body a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--khaki);
    transition: color 0.2s;
}
.legal-body a:hover {
    color: var(--khaki);
}

/* "Uppgifter / Ändamål / Rättslig grund / Lagras" fact boxes */
.legal-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 24px;
    max-width: 68ch;
    margin-top: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    font-size: 15px;
    line-height: 1.55;
}
.legal-facts dt {
    padding-top: 3px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.legal-facts dd {
    color: var(--text);
}

/* Retention and storage tables */
.legal-table {
    max-width: 68ch;
    margin-top: 16px;
    overflow-x: auto;
}
.legal-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}
.legal-table th,
.legal-table td {
    padding: 12px 16px 12px 0;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    border-top: 0;
    padding-top: 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.legal-table code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13.5px;
    color: var(--ink);
}
.legal-note {
    max-width: 68ch;
    margin-top: 18px;
    padding: 18px 22px;
    background: var(--beige);
    border-radius: var(--radius-small);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .legal-toc {
        position: static;
    }
    .legal-facts {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .legal-facts dd {
        margin-bottom: 10px;
    }
    .legal-facts dd:last-child {
        margin-bottom: 0;
    }
}
