/* Layout shell for legal/support pages — dark wrapper, light readable card */

.legal-shell {
    position: relative;
    padding: clamp(60px, 10vw, 110px) 0 clamp(80px, 12vw, 140px);
    overflow: hidden;
}

.legal-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.legal-bg-blob {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.18;
    top: -200px;
    right: -200px;
}
.legal-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 100%);
}

.legal-card {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    color: #2A2A2A;
    border-radius: var(--r-xl);
    padding: clamp(32px, 5vw, 56px);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Top accent stripe */
.legal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--teal) 100%);
}

/* Typography inside legal-card */
.legal-card h1 {
    color: var(--teal);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.legal-card h2 {
    color: var(--teal);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.legal-card h3 {
    color: #3A3A3A;
    font-size: clamp(16px, 1.6vw, 18px);
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 8px;
}
.legal-card p,
.legal-card li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #3A3A3A;
}
.legal-card ol,
.legal-card ul {
    padding-left: 22px;
    margin-bottom: 18px;
}
.legal-card ol li { margin-bottom: 18px; }
.legal-card ul li { margin-bottom: 10px; }
.legal-card strong { color: #1A1A1A; font-weight: 700; }
.legal-card code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: rgba(56, 104, 113, 0.08);
    color: var(--teal);
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-card .last-updated {
    color: #888;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-card a,
.legal-card .contact-email {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.legal-card a:hover,
.legal-card .contact-email:hover {
    border-bottom-color: var(--teal);
}

/* Highlighted contact block (used on support page) */
.legal-card .contact-block {
    background: linear-gradient(135deg, rgba(56, 104, 113, 0.06) 0%, rgba(196, 219, 147, 0.06) 100%);
    border-left: 4px solid var(--teal);
    padding: 20px 24px;
    margin: 24px 0 28px;
    border-radius: var(--r-sm);
}
.legal-card .contact-block p { margin: 0; font-size: 16px; }
.legal-card .contact-block .response-time {
    color: #777;
    font-size: 13px;
    margin-top: 6px !important;
}

/* CTA button (Back to Badjo) */
.legal-card .back-link,
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    padding: 14px 28px;
    background: var(--teal);
    color: white !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    border-bottom: none !important;
}
.legal-card .back-link:hover,
.legal-back:hover {
    background: #2a5761;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(56, 104, 113, 0.4);
    border-bottom-color: transparent !important;
}

/* Lang switcher on legal pages (uses <a> not <button>) */
.legal-page a.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.legal-page a.lang-btn.active {
    background: var(--accent);
    color: var(--bg);
}

/* Hide About modal on legal pages (not present) */
.legal-page .modal-overlay { display: none; }

@media (max-width: 600px) {
    .legal-card { padding: 28px 22px; }
    .legal-card .back-link,
    .legal-back {
        display: block;
        text-align: center;
        width: 100%;
    }
}
