/* Legal Pages — Premium Green & White */

.legal-content {
    padding: 2rem 0 var(--space-section, 3.25rem);
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 45%);
    width: 100%;
}

.legal-wrapper {
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    padding: 1.75rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
}

@media (max-width: 768px) {
    .legal-wrapper {
        padding: 2rem 1.35rem;
    }
}

.legal-intro {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.intro-text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.legal-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 650;
    margin-bottom: 1.25rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-section h2 i {
    color: var(--emerald-700);
    font-size: 1.65rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.legal-section:hover h2 i {
    transform: scale(1.04);
    background: linear-gradient(145deg, var(--emerald-700), var(--emerald-600));
    color: var(--white);
    border-color: transparent;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.legal-list li {
    padding: 0.85rem 0 0.85rem 2.75rem;
    position: relative;
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 0.98rem;
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-radius: var(--radius-sm);
    margin-bottom: 0.35rem;
}

.legal-list li:hover {
    color: var(--emerald-900);
    padding-left: 3rem;
    background: var(--emerald-50);
}

.legal-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--emerald-600);
    font-size: 0.75rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.legal-list li:hover::before {
    transform: translateY(-50%) scale(1.08);
    background: var(--emerald-600);
    color: var(--white);
    border-color: transparent;
}

.legal-list.warning-list li::before {
    content: "\f00d";
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.legal-list.warning-list li:hover::before {
    background: #dc2626;
    color: var(--white);
    border-color: transparent;
}

.note-text {
    background: var(--emerald-50);
    border-left: 4px solid var(--emerald-600);
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.65;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.note-text i {
    color: var(--emerald-700);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.warning-text {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.65;
}

.warning-text i {
    color: #ef4444;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.legal-footer {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    text-align: center;
    background: var(--emerald-50);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2.5rem;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

@media (max-width: 768px) {
    .legal-footer {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-bottom: -2rem;
        padding: 1.5rem 1rem;
    }
}

.legal-footer p {
    color: var(--muted);
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.legal-footer strong {
    color: var(--ink);
    font-weight: 700;
}

.legal-wrapper .btn-primary {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem 0 2.75rem;
    }

    .legal-section h2 {
        font-size: 1.35rem;
    }

    .legal-section h2 i {
        font-size: 1.25rem;
        width: 48px;
        height: 48px;
    }
}
