/* ============================================================
   NobleCause — Legal Pages Shared Stylesheet
   Loaded on: Terms of Use, Privacy Policy, Disclaimer
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.nc-legal-page {
    min-height: 100vh;
    background: var(--nc-bg);
}

/* ── Page header (replaces hero) ─────────────────────────── */
.nc-legal-header {
    background: linear-gradient(180deg, #050505 0%, #0c0c0c 70%, var(--nc-bg) 100%);
    padding: 140px 0 36px;
    border-bottom: 1px solid var(--nc-glass-border);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.nc-legal-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 280px;
    background: radial-gradient(ellipse at center, rgba(245,166,35,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.nc-legal-header__inner {
    position: relative;
    z-index: 1;
}
.nc-legal-header__badge {
    display: inline-block;
    padding: 5px 18px;
    border: 1px solid rgba(245,166,35,0.35);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nc-gold-1);
    background: rgba(245,166,35,0.07);
    margin-bottom: 16px;
}
.nc-legal-header__title {
    font-family: var(--nc-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 14px;
}
.nc-legal-header__meta {
    font-size: 0.85rem;
    color: var(--nc-text-dim);
}
.nc-legal-header__meta strong {
    color: rgba(255,255,255,0.55);
}

/* ── Body container ───────────────────────────────────────── */
.nc-legal-body {
    max-width: 820px;
    margin-inline: auto;
    padding: 56px 24px 80px;
}

/* ── Table of contents ────────────────────────────────────── */
.nc-legal-toc {
    background: var(--nc-glass-bg);
    border: 1px solid var(--nc-glass-border);
    border-radius: var(--nc-radius);
    padding: 28px 32px;
    margin-bottom: 48px;
    backdrop-filter: blur(12px);
}
.nc-legal-toc h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nc-gold-1);
    margin-bottom: 14px;
    font-family: var(--nc-font-sans);
    font-weight: 700;
}
.nc-legal-toc ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
}
.nc-legal-toc li  { font-size: 0.88rem; color: var(--nc-text-muted); }
.nc-legal-toc a   { color: var(--nc-text-muted); text-decoration: none; transition: color 0.2s; }
.nc-legal-toc a:hover { color: var(--nc-gold-1); }

/* ── Sections ─────────────────────────────────────────────── */
.nc-legal-section {
    margin-bottom: 48px;
    scroll-margin-top: 120px;
}
.nc-legal-section h2 {
    font-size: 1.35rem;
    color: var(--nc-white);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nc-glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.nc-legal-section h2 .nc-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.3);
    font-size: 0.8rem;
    color: var(--nc-gold-1);
    font-family: var(--nc-font-sans);
    flex-shrink: 0;
}
.nc-legal-section h3 {
    font-size: 1rem;
    color: var(--nc-white);
    margin: 20px 0 8px;
    font-family: var(--nc-font-sans);
    font-weight: 600;
}
.nc-legal-section p {
    font-size: 0.93rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.68);
    margin-bottom: 14px;
}
.nc-legal-section ul,
.nc-legal-section ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
.nc-legal-section li {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
    margin-bottom: 6px;
}

/* ── Callout highlights ───────────────────────────────────── */
.nc-legal-highlight {
    background: rgba(245,166,35,0.06);
    border: 1px solid rgba(245,166,35,0.2);
    border-left: 3px solid var(--nc-gold-1);
    border-radius: 0 var(--nc-radius-sm) var(--nc-radius-sm) 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}
.nc-legal-highlight--warning {
    background: rgba(231,76,60,0.06);
    border-color: rgba(231,76,60,0.3);
    border-left-color: #e74c3c;
}

/* ── Contact box ──────────────────────────────────────────── */
.nc-legal-contact-box {
    background: var(--nc-glass-bg-2);
    border: 1px solid var(--nc-glass-border);
    border-radius: var(--nc-radius);
    padding: 28px 32px;
    margin-top: 16px;
}
.nc-legal-contact-box p        { margin: 0 0 6px; }
.nc-legal-contact-box strong   { color: var(--nc-white); }
.nc-legal-contact-box a        { color: var(--nc-gold-1); }

/* ── Back navigation ──────────────────────────────────────── */
.nc-legal-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--nc-glass-border);
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Refund table (Terms page) ────────────────────────────── */
.nc-refund-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.88rem;
}
.nc-refund-table th {
    background: rgba(245,166,35,0.1);
    color: var(--nc-gold-1);
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid rgba(245,166,35,0.2);
    font-family: var(--nc-font-sans);
}
.nc-refund-table td {
    padding: 10px 14px;
    border: 1px solid var(--nc-glass-border);
    color: rgba(255,255,255,0.65);
    vertical-align: top;
    line-height: 1.6;
}
.nc-refund-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .nc-legal-header { padding: 120px 0 36px; }
    .nc-legal-body   { padding: 40px 16px 60px; }
    .nc-legal-toc ol { grid-template-columns: 1fr; }
    .nc-legal-toc    { padding: 20px; }
    .nc-legal-contact-box { padding: 20px; }
}
