/* =============================================
   LEGAL.CSS — DONHOSTER
   Shared styles for Privacy Policy, Terms, etc.
   ============================================= */

.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.legal-hero {
    background: linear-gradient(135deg, #6B3DBB 0%, #4C1D95 60%, #1E3A8A 100%);
    padding: 56px 0 48px;
}

.legal-hero-inner { max-width: 760px; }

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 20px;
}
.legal-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.legal-breadcrumb a:hover { color: white; }
.legal-breadcrumb svg { stroke: rgba(255,255,255,0.4); flex-shrink: 0; }
.legal-breadcrumb span { color: white; font-weight: 500; }

.legal-hero-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    line-height: 1.15;
}

.legal-hero-sub {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.legal-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.legal-badge svg { stroke: #10B981; }

/* ════════════════════════════════════════════
   LAYOUT — sidebar + content
   ════════════════════════════════════════════ */
.legal-layout {
    padding: 56px 0 80px;
    background: var(--bg-secondary);
}

.legal-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Sidebar TOC ── */
.legal-toc { position: sticky; top: 96px; }

.legal-toc-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.legal-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    counter-reset: none;
}

.legal-toc-list li { list-style: none; }

.legal-toc-list a {
    display: block;
    padding: 8px 12px;
    font-size: 0.8375rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.legal-toc-list a:hover,
.legal-toc-list a.active {
    color: #6B3DBB;
    background: rgba(107,61,187,0.07);
    border-left-color: #6B3DBB;
}

.legal-toc-contact {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.legal-toc-contact p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legal-toc-contact a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8375rem;
    color: #6B3DBB;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}
.legal-toc-contact a:hover { text-decoration: underline; }
.legal-toc-contact svg { stroke: #6B3DBB; flex-shrink: 0; }

/* ── Article content ── */
.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px 52px;
    box-shadow: var(--shadow-md);
}

/* Intro block */
.legal-intro {
    padding: 24px 28px;
    background: rgba(107,61,187,0.05);
    border-left: 4px solid #6B3DBB;
    border-radius: 0 10px 10px 0;
    margin-bottom: 40px;
}

.legal-intro p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 12px;
}
.legal-intro p:last-child { margin-bottom: 0; }
.legal-intro strong { color: var(--text-primary); }

/* Sections */
.legal-section { margin-bottom: 48px; }
.legal-section:last-of-type { margin-bottom: 0; }

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B3DBB, #8E2FE4);
    color: white;
    font-size: 0.875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.legal-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section p a { color: #6B3DBB; font-weight: 600; text-decoration: none; }
.legal-section p a:hover { text-decoration: underline; }
.legal-section strong { color: var(--text-primary); font-weight: 600; }

/* List */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-list li {
    display: flex;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 6px;
}

.legal-list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6B3DBB;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Note box */
.legal-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 14px;
}

.legal-note svg { stroke: #F59E0B; flex-shrink: 0; margin-top: 2px; }
.legal-note p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.65; }
.legal-note strong { color: var(--text-primary); }

/* Contact box */
.legal-contact-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.legal-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.legal-contact-item svg { stroke: #6B3DBB; flex-shrink: 0; }
.legal-contact-item a { color: #6B3DBB; font-weight: 600; text-decoration: none; }
.legal-contact-item a:hover { text-decoration: underline; }

/* Bottom CTA */
.legal-cta {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(107,61,187,0.08), rgba(142,47,228,0.05));
    border: 1px solid rgba(107,61,187,0.2);
    border-radius: 14px;
    padding: 28px 32px;
    margin-top: 48px;
}

.legal-cta-icon {
    width: 56px; height: 56px;
    background: rgba(107,61,187,0.12);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.legal-cta-icon svg { stroke: #6B3DBB; }

.legal-cta strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.legal-cta p { font-size: 0.9375rem; color: var(--text-secondary); margin: 0; line-height: 1.65; }
.legal-cta a { color: #6B3DBB; font-weight: 600; text-decoration: none; }
.legal-cta a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .legal-grid { grid-template-columns: 220px 1fr; gap: 32px; }
    .legal-content { padding: 36px 36px; }
}

@media (max-width: 768px) {
    .legal-grid    { grid-template-columns: 1fr; }
    .legal-toc     { position: static; }
    .legal-toc-inner { border-radius: 12px; }
    .legal-content { padding: 28px 22px; }
    .legal-cta     { flex-direction: column; gap: 14px; }
    .legal-cta-icon { width: 44px; height: 44px; }
    .section-container { padding: 0 1.25rem; }
}