/* ── LEGAL PAGES — Premium Refinement ──
   Replaces the minimal style block on terms/privacy/refund.
   Zero structural changes — visual hierarchy, rhythm, and depth only.
*/

.legal-page-wrapper {
    /* Matches homepage/service page feel */
    min-height: 100vh;
}

/* ── Page background: subtle gradient radial ── */
.legal-section {
    padding: 9rem 0 7rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    position: relative;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, .04) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Container ── */
.legal-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ── Header: eyebrow + title + divider ── */
.legal-header {
    margin-bottom: 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7f63f6;
    margin-bottom: 1.5rem;
}

.legal-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #7f63f6;
    border-radius: 2px;
}

.legal-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(130deg, #fff 0%, #c4b5ff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.legal-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2rem;
}

.legal-header-rule {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
    margin: 1.5rem auto 0;
    border: none;
}

/* ── Content wrapper ── */
.legal-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ── Section blocks ── */
.legal-section-block {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    position: relative;
}

.legal-section-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ── Section headings ── */
.legal-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.legal-heading::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--accent-blue);
    border-radius: 2px;
    flex-shrink: 0;
    opacity: .6;
}

/* ── Paragraph text ── */
.legal-text {
    font-size: .975rem;
    line-height: 1.82;
    color: #9ca3af;
    margin-bottom: 1.1rem;
}

.legal-text:last-child {
    margin-bottom: 0;
}

/* ── Lists ── */
.legal-list {
    margin: .75rem 0 1.1rem 1rem;
    padding-left: 1rem;
    list-style: none;
}

.legal-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: .7rem;
    font-size: .975rem;
    line-height: 1.75;
    color: #9ca3af;
}

.legal-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    opacity: .5;
    font-weight: 700;
}

.legal-list li:last-child {
    margin-bottom: 0;
}

/* ── Contact info inside legal blocks ── */
.legal-text br+br,
.legal-text br {
    line-height: 2.2;
}
/* =============================================
   LEGAL PAGES — 3D DEPTH & SHADOW ENHANCEMENTS
   ============================================= */

/* --- Simple elevation for blocks to guide focus --- */
.legal-section-block {
    padding: 2.5rem;
    margin-bottom: 4rem;
    background: rgba(15, 15, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.legal-section-block:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6),
                inset 0 1px 2px rgba(255, 255, 255, 0.08),
                0 0 30px rgba(59, 130, 246, 0.05);
}

.legal-section-block:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04); /* Restore symmetry for blocks */
}

/* --- Subsection title depth --- */
.legal-heading::before {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* --- List item indicators --- */
.legal-list li::before {
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* ── Light Theme Refinements ── */
body.light-theme .legal-section {
    background: #F8FAFC !important;
    color: #374151 !important;
}

body.light-theme .legal-section::before {
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.06) 0%, transparent 70%) !important;
    opacity: 0.6;
}

body.light-theme .legal-title {
    background: linear-gradient(130deg, #0F172A 0%, #7f63f6 55%, #00b8f0 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.light-theme .legal-subtitle,
body.light-theme .legal-content {
    color: #475569 !important;
}

body.light-theme .legal-section-block {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    padding: 32px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.light-theme .legal-section-block::after {
    display: none !important;
}

body.light-theme .legal-section-block:hover {
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .legal-section h2,
body.light-theme .legal-section h3,
body.light-theme .legal-heading,
body.light-theme .legal-heading-sub {
    color: #111827 !important;
}

body.light-theme .legal-section p,
body.light-theme .legal-section li,
body.light-theme .legal-text,
body.light-theme .legal-list li {
    color: #374151 !important;
}

body.light-theme .legal-heading,
body.light-theme .legal-heading-sub {
    margin-bottom: 12px !important;
}

body.light-theme .legal-text,
body.light-theme .legal-list,
body.light-theme .legal-section p,
body.light-theme .legal-section ul {
    margin-bottom: 12px !important;
}

body.light-theme .legal-section-block:last-child,
body.light-theme .legal-section-block .legal-text:last-child,
body.light-theme .legal-section-block .legal-list:last-child {
    margin-bottom: 0 !important;
}

body.light-theme .legal-list li::before {
    color: #3B82F6 !important;
    opacity: 0.85 !important;
    text-shadow: none !important;
}

body.light-theme .legal-tab-btn,
body.light-theme .btn-secondary {
    background: #E5E7EB !important;
    color: #374151 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .legal-tab-btn:hover,
body.light-theme .btn-secondary:hover {
    color: #111827 !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
}

body.light-theme .legal-tab-btn.active {
    background: var(--accent-blue) !important;
    color: #FFFFFF !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.22) !important;
}

/* ── Final Spacing Consistency (Both Themes) ── */
.legal-section-block {
    padding: 32px !important;
    margin-bottom: 24px !important;
}

.legal-section-block:last-child {
    margin-bottom: 0 !important;
}

.legal-heading,
.legal-heading-sub,
.legal-section h2,
.legal-section h3 {
    margin-bottom: 12px !important;
}

.legal-text,
.legal-list,
.legal-section p,
.legal-section ul {
    margin-bottom: 12px !important;
}

.legal-section-block .legal-text:last-child,
.legal-section-block .legal-list:last-child,
.legal-section-block p:last-child,
.legal-section-block ul:last-child {
    margin-bottom: 0 !important;
}

body.light-theme .legal-section-block,
body.dark-theme .legal-section-block {
    padding: 32px !important;
    margin-bottom: 24px !important;
}

