/* Legal Pages (Terms & Privacy) */
.legal-page {
    min-height: 100vh;
    background: var(--bg);
    padding: 8rem 2rem 4rem;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-family: var(--heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-3);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: var(--heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section h3 {
    font-family: var(--heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-section ul li {
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #d4a957;
    font-weight: bold;
}

.legal-section strong {
    color: var(--text);
    font-weight: 600;
}

.legal-section a {
    color: #e9c97e;
    text-decoration: underline;
}

.legal-section a:hover {
    color: #ead29b;
}

.legal-footer {
    display: flex;
    gap: 2rem;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.legal-footer a {
    color: #e9c97e;
    font-weight: 500;
    transition: color 0.3s;
}

.legal-footer a:hover {
    color: #ead29b;
}

/* FAQ accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
    opacity: 0;
    transform: translateY(12px);
    animation: faqSlideIn 0.4s ease forwards;
}

.faq-item:nth-child(1)  { animation-delay: 0s; }
.faq-item:nth-child(2)  { animation-delay: 0.05s; }
.faq-item:nth-child(3)  { animation-delay: 0.1s; }
.faq-item:nth-child(4)  { animation-delay: 0.15s; }
.faq-item:nth-child(5)  { animation-delay: 0.2s; }
.faq-item:nth-child(6)  { animation-delay: 0.25s; }
.faq-item:nth-child(7)  { animation-delay: 0.3s; }
.faq-item:nth-child(8)  { animation-delay: 0.35s; }
.faq-item:nth-child(9)  { animation-delay: 0.4s; }
.faq-item:nth-child(10) { animation-delay: 0.45s; }

@keyframes faqSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

.faq-item[open] {
    border-color: rgba(212,169,87, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.faq-item summary {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-3);
    flex-shrink: 0;
    transition: transform 0.3s, color 0.3s;
}

.faq-item[open] summary::after {
    content: '-';
    color: #e9c97e;
}

.faq-item summary:hover {
    color: #ead29b;
}

.faq-answer {
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.faq-item p {
    padding: 0 1.5rem 1.2rem;
    margin: 0;
    color: var(--text-2);
    line-height: 1.7;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 1.5rem 3rem;
    }

    .legal-page h1 {
        font-size: 2.2rem;
    }

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

    .legal-footer {
        flex-direction: column;
        gap: 1rem;
    }
}
