/* =========================================================
   PERSONVERN / LEGAL – NordPair
   ========================================================= */

:root {
    --bg-primary: #04060d;
    --bg-card: rgba(15, 19, 32, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-tertiary: rgba(255, 255, 255, 0.45);
    --accent: #5b8cff;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul { list-style: none; }

/* Bakgrunn */
.bg-gradient {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91,140,255,0.12), transparent),
        linear-gradient(180deg, #04060d 0%, #06091a 50%, #04060d 100%);
}
.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; pointer-events: none; opacity: 0.3; }
.bg-glow--1 { width: 600px; height: 600px; background: rgba(91,140,255,0.25); top: 5%; right: -15%; }
.bg-glow--2 { width: 500px; height: 500px; background: rgba(60,100,200,0.15); bottom: 20%; left: -15%; }

/* =========================================================
   CONTAINER
   ========================================================= */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 130px 32px 80px;
}

.legal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    padding: 56px 60px;
}

/* HEADER */
.legal__head {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.legal__eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(91, 140, 255, 0.06);
    border: 1px solid rgba(91, 140, 255, 0.25);
    border-radius: 999px;
}

.legal__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.legal__updated {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 300;
}

.legal__intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* SEKSJONER */
.legal__section {
    margin-bottom: 36px;
}

.legal__section h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.legal__section p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 14px;
}

.legal__section p:last-child { margin-bottom: 0; }

.legal__section a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(91, 140, 255, 0.3);
    transition: border-color 0.25s ease;
}

.legal__section a:hover {
    border-color: var(--accent);
}

/* LISTER */
.legal__list {
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal__list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

.legal__list li::before {
    content: '';
    position: absolute;
    left: 0;
    /* Sentrer mot første tekstlinjes høyde (15px * 1.6 = 24px) */
    top: calc((15px * 1.6 - 14px) / 2);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(91, 140, 255, 0.1);
    border: 1px solid rgba(91, 140, 255, 0.4);
}

.legal__list li::after {
    content: '';
    position: absolute;
    left: 4.5px;
    /* Sentrer mot samme linje som ::before (24px linjehøyde) */
    top: calc((15px * 1.6 - 5px) / 2);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

/* KONTAKT-BOKS */
.legal__contact-box {
    margin-top: 48px;
    padding: 32px 36px;
    background: rgba(91, 140, 255, 0.05);
    border: 1px solid rgba(91, 140, 255, 0.2);
    border-radius: 16px;
    text-align: center;
}

.legal__contact-box h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.legal__contact-box p {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 300;
    margin-bottom: 20px;
}

.legal__contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b8cff, #4170e8);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.5),
        0 8px 24px rgba(91, 140, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.legal__contact-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(91, 140, 255, 0.6),
        0 12px 32px rgba(91, 140, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Footer legal-lenke */
.site-footer__legal {
    margin-top: 6px;
}

.site-footer__legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s ease;
}

.site-footer__legal a:hover {
    color: var(--accent);
}

/* =========================================================
   RESPONSIV
   ========================================================= */
@media (max-width: 768px) {
    .legal-page {
        padding: 110px 20px 60px;
    }

    .legal {
        padding: 36px 26px;
        border-radius: 18px;
    }

    .legal__contact-box {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .legal {
        padding: 30px 20px;
    }

    .legal__section h2 {
        font-size: 18px;
    }
}