/* =================================================================
   Xtream-Masters Legal Pages — shared stylesheet
   Used by: privacy.php, terms_conditions.php, refund_policy.php
   ================================================================= */

.legal-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d45 40%, #0f2035 100%);
    padding: 130px 0 70px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(245,99,62,0.09) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -15%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(102,126,234,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.legal-hero .container { position: relative; z-index: 2; }
.legal-hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff;
    line-height: 1.1;
}
.legal-hero h1 span {
    background: linear-gradient(135deg, #f5633e, #ff8a65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.legal-hero .lh-lead {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    max-width: 720px;
    margin: 0 auto 6px;
    line-height: 1.65;
}
.legal-hero .lh-badge {
    display: inline-block;
    background: rgba(245, 99, 62, 0.15);
    color: #f5633e;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 22px;
    border: 1px solid rgba(245, 99, 62, 0.3);
}
.legal-hero .lh-updated {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-top: 16px;
}

/* TOC / body layout */
.legal-body {
    padding: 0;
    background: #f8fafb;
    position: relative;
}
.legal-body::before {
    content: '';
    position: absolute;
    top: -40px; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, #f8fafb);
}
.legal-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 90px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}
@media (max-width: 960px) {
    .legal-wrap { grid-template-columns: 1fr; }
    .legal-toc { position: static !important; }
}
.legal-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.legal-toc h4 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f5633e;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}
.legal-toc ol {
    list-style: none;
    padding: 0; margin: 0;
    counter-reset: toc-item;
}
.legal-toc ol li {
    counter-increment: toc-item;
    margin: 0;
}
.legal-toc ol li a {
    display: block;
    padding: 7px 0 7px 28px;
    font-size: 13px;
    color: #4a5568;
    text-decoration: none;
    position: relative;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.5;
}
.legal-toc ol li a::before {
    content: counter(toc-item, decimal-leading-zero);
    position: absolute;
    left: 8px; top: 7px;
    color: #cbd5e0;
    font-weight: 700;
    font-size: 11px;
}
.legal-toc ol li a:hover { color: #f5633e; background: #fff4f0; }
.legal-toc ol li a:hover::before { color: #f5633e; }
.legal-toc ol li a.active {
    color: #f5633e;
    background: #fff4f0;
    border-left-color: #f5633e;
    font-weight: 600;
}

/* Main content */
.legal-content {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 44px 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    min-width: 0;
}
@media (max-width: 640px) {
    .legal-content { padding: 28px 22px; }
}
.legal-content > *:first-child { margin-top: 0; }
.legal-content .notice-box {
    background: linear-gradient(135deg, #fff4f0, #fff);
    border-left: 4px solid #f5633e;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 34px;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.75;
    box-shadow: 0 2px 10px rgba(245,99,62,0.06);
}
.legal-content .notice-box strong { color: #c0392b; font-weight: 700; }
.legal-content .notice-box.notice-warn {
    background: linear-gradient(135deg, #fff9e6, #fff);
    border-left-color: #f39c12;
}
.legal-content .notice-box.notice-warn strong { color: #b7791f; }
.legal-content .notice-box.notice-info {
    background: linear-gradient(135deg, #e8f4ff, #fff);
    border-left-color: #3498db;
}
.legal-content .notice-box.notice-info strong { color: #2874a6; }
.legal-content .notice-box.notice-ok {
    background: linear-gradient(135deg, #e8f8ef, #fff);
    border-left-color: #22c55e;
}
.legal-content .notice-box.notice-ok strong { color: #16a34a; }

.legal-content section {
    padding-top: 20px;
    scroll-margin-top: 90px;
}
.legal-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f2035;
    margin: 30px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 12px;
}
.legal-content h3 .num {
    display: inline-flex;
    background: linear-gradient(135deg, #f5633e, #ff8a65);
    color: #fff;
    width: 34px; height: 34px;
    border-radius: 50%;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245,99,62,0.3);
}
.legal-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 22px 0 10px;
}
.legal-content p, .legal-content li {
    font-size: 15px;
    line-height: 1.85;
    color: #4a5568;
}
.legal-content ul, .legal-content ol { padding-left: 24px; margin: 10px 0 16px; }
.legal-content ul li, .legal-content ol li { margin-bottom: 8px; }
.legal-content ul li::marker { color: #f5633e; }
.legal-content strong { color: #2d3748; font-weight: 700; }
.legal-content a { color: #f5633e; font-weight: 600; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* Info card grid */
.legal-content .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 22px;
}
.legal-content .info-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
}
.legal-content .info-card h5 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f5633e;
    margin: 0 0 8px;
}
.legal-content .info-card p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

/* Refund steps */
.legal-content .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin: 20px 0 28px;
}
.legal-content .step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 20px;
    position: relative;
    transition: all 0.25s ease;
}
.legal-content .step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #f5633e;
}
.legal-content .step-card .step-num {
    position: absolute;
    top: -14px; left: 20px;
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #f5633e, #ff8a65);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(245,99,62,0.35);
}
.legal-content .step-card h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 8px 0 8px;
    color: #0f2035;
}
.legal-content .step-card p { font-size: 14px; margin: 0; }

/* Highlight callout */
.legal-content .highlight {
    background: #0f2035;
    color: #fff;
    padding: 26px 30px;
    border-radius: 12px;
    margin: 26px 0;
    position: relative;
    overflow: hidden;
}
.legal-content .highlight::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 200px; height: 100%;
    background: radial-gradient(circle at right, rgba(245,99,62,0.18), transparent 70%);
    pointer-events: none;
}
.legal-content .highlight h4 {
    color: #ff8a65;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}
.legal-content .highlight p {
    color: rgba(255,255,255,0.82);
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    position: relative;
}

/* Contact block */
.legal-content .contact-card {
    margin-top: 50px;
    background: linear-gradient(135deg, #fff4f0, #fff);
    border: 1px solid #f5633e33;
    border-radius: 12px;
    padding: 26px 30px;
    text-align: center;
}
.legal-content .contact-card h4 {
    margin: 0 0 10px;
    color: #0f2035;
    font-weight: 800;
    font-size: 20px;
}
.legal-content .contact-card p { margin: 0 0 10px; }
.legal-content .contact-card .cc-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.legal-content .contact-card .cc-links a {
    background: #fff;
    border: 1px solid #f5633e33;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.legal-content .contact-card .cc-links a:hover {
    background: #f5633e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245,99,62,0.3);
}
