/* Handelsbetingelser page styles */

        /* ---- Page hero ---- */
        .terms-hero {
            background: radial-gradient(ellipse at 60% 50%, #1a1008 0%, #0d0d0d 65%);
            padding: 10rem 0 5rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .terms-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle, rgba(245,233,200,0.03) 1px, transparent 1px);
            background-size: 32px 32px;
            pointer-events: none;
        }

        .terms-hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            color: var(--cream);
            margin-bottom: 1.25rem;
        }

        .terms-hero-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--cream);
            opacity: 0.7;
        }

        .terms-hero h1 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            margin-bottom: 1rem;
            color: var(--white);
        }

        .terms-hero p {
            color: var(--text-muted);
            font-size: 0.95rem;
            max-width: 480px;
            margin: 0 auto;
        }

        /* ---- Layout ---- */
        .terms-layout {
            max-width: 1080px;
            margin: 0 auto;
            padding: 4rem 1.5rem 6rem;
            display: grid;
            grid-template-columns: 220px 1fr;
            gap: 4rem;
            align-items: start;
        }

        @media (max-width: 768px) {
            .terms-layout {
                grid-template-columns: 1fr;
                gap: 2.5rem;
                padding: 2.5rem 1.25rem 4rem;
            }
        }

        /* ---- Sticky sidebar nav ---- */
        .terms-nav {
            position: sticky;
            top: 100px;
        }

        .terms-nav-label {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .terms-nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
        }

        .terms-nav-list a {
            display: block;
            font-size: 0.83rem;
            color: var(--text-muted);
            padding: 0.45rem 0.75rem;
            border-left: 2px solid rgba(255,255,255,0.08);
            transition: all 0.2s ease;
            line-height: 1.4;
        }

        .terms-nav-list a:hover,
        .terms-nav-list a.active {
            color: var(--cream);
            border-left-color: var(--cream);
            background: rgba(245,233,200,0.04);
        }

        @media (max-width: 768px) {
            .terms-nav {
                position: static;
                background: rgba(255,255,255,0.03);
                border: 1px solid rgba(255,255,255,0.07);
                border-radius: 12px;
                padding: 1.25rem;
            }
            .terms-nav-list {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 0.5rem;
            }
            .terms-nav-list a {
                border-left: none;
                border-bottom: 2px solid rgba(255,255,255,0.08);
                padding: 0.35rem 0.5rem;
                font-size: 0.8rem;
            }
            .terms-nav-list a:hover {
                border-left: none;
                border-bottom-color: var(--cream);
            }
        }

        /* ---- Content ---- */
        .terms-content {
            color: var(--text);
        }

        .terms-section {
            margin-bottom: 4rem;
            scroll-margin-top: 100px;
        }

        .terms-section-tag {
            display: inline-block;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: var(--cream);
            background: rgba(245,233,200,0.08);
            border: 1px solid rgba(245,233,200,0.15);
            border-radius: 999px;
            padding: 0.3rem 0.85rem;
            margin-bottom: 1rem;
        }

        .terms-section h2 {
            font-size: clamp(1.4rem, 3vw, 1.9rem);
            color: var(--white);
            margin-bottom: 2rem;
            line-height: 1.2;
        }

        .terms-section-divider {
            width: 100%;
            height: 1px;
            background: rgba(255,255,255,0.07);
            margin-bottom: 4rem;
        }

        /* Individual clauses */
        .clause {
            margin-bottom: 1.75rem;
            padding-bottom: 1.75rem;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .clause:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .clause-number {
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--cream);
            opacity: 0.7;
            margin-bottom: 0.4rem;
        }

        .clause h3 {
            font-family: var(--font-serif);
            font-size: 1.05rem;
            color: var(--white);
            font-weight: 600;
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }

        .clause p {
            font-size: 0.9rem;
            line-height: 1.8;
            color: rgba(255,255,255,0.65);
            margin-bottom: 0.6rem;
        }

        .clause p:last-child {
            margin-bottom: 0;
        }

        .clause ul {
            margin: 0.5rem 0 0.6rem 0;
            padding: 0;
            list-style: none;
        }

        .clause ul li {
            font-size: 0.9rem;
            line-height: 1.7;
            color: rgba(255,255,255,0.65);
            padding: 0.2rem 0 0.2rem 1.25rem;
            position: relative;
        }

        .clause ul li::before {
            content: '–';
            position: absolute;
            left: 0;
            color: var(--cream);
            opacity: 0.5;
        }

        /* Highlight box for important numbers */
        .clause-highlight {
            background: rgba(245,233,200,0.05);
            border: 1px solid rgba(245,233,200,0.12);
            border-radius: 10px;
            padding: 1rem 1.25rem;
            margin-top: 0.75rem;
            font-size: 0.88rem;
            color: rgba(255,255,255,0.7);
            line-height: 1.7;
        }

        .clause-highlight strong {
            color: var(--cream);
        }

        /* Updated date footer */
        .terms-updated {
            margin-top: 3rem;
            padding: 1.25rem 1.5rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 12px;
            font-size: 0.83rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .terms-updated svg {
            flex-shrink: 0;
            opacity: 0.5;
        }
    

/* ---- Mobile fixes for handelsbetingelser ---- */
@media (max-width: 767px) {
    .terms-hero {
        padding: 7rem 0 3rem;
    }

    .terms-layout {
        padding: 2rem 1.25rem 3.5rem;
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .terms-nav {
        position: static;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 12px;
        padding: 1rem 1.25rem;
    }

    .terms-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .terms-nav-list a {
        border-left: none;
        border-bottom: 2px solid rgba(255,255,255,0.08);
        padding: 0.35rem 0.6rem;
        font-size: 0.78rem;
        border-radius: 0;
    }

    .terms-nav-list a:hover,
    .terms-nav-list a.active {
        border-left: none;
        border-bottom-color: var(--cream);
        background: transparent;
    }

    .terms-section {
        margin-bottom: 2.5rem;
    }

    .terms-section h2 {
        font-size: 1.4rem;
    }

    .clause {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .clause h3 {
        font-size: 0.97rem;
    }

    .clause p, .clause ul li {
        font-size: 0.88rem;
    }

    .clause-highlight {
        font-size: 0.84rem;
        padding: 0.85rem 1rem;
    }

    .terms-updated {
        font-size: 0.8rem;
        padding: 1rem;
        flex-direction: column;
        gap: 0.4rem;
    }
}
