/* ============================================================
   NoCloud AquaHub — Legal Pages Styles (legal.css)
   Shared by: privacy, terms, cookies, returns
   ============================================================ */

/* --- Page Hero ---------------------------------------------- */
.legal-hero {
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 80%, rgba(14,165,233,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 20%, rgba(34,211,238,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.legal-hero .section-title {
    font-size: 2.75rem;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* --- Layout: TOC sidebar + body ----------------------------- */
.legal-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Table of Contents (sticky sidebar) --------------------- */
.legal-toc {
    position: sticky;
    top: calc(var(--header-height) + 48px);
    align-self: start;
}

.legal-toc h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 2px;
}

.legal-toc a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: block;
    padding: 6px 0 6px 16px;
    border-left: 2px solid var(--border-color);
    transition: color var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}

.legal-toc a:hover {
    color: var(--teal-primary);
    border-left-color: var(--teal-primary);
}

/* --- Article body ------------------------------------------- */
.legal-body {
    min-width: 0;
}

.legal-body section {
    margin-bottom: 40px;
}

.legal-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.legal-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-body li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-body ul li {
    list-style: disc;
}

.legal-body ol li {
    list-style: decimal;
}

.legal-body a {
    color: var(--teal-primary);
    text-decoration: underline;
}

.legal-body a:hover {
    color: var(--cyan-accent);
}

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

/* --- Highlight box (contact info, key notices) -------------- */
.legal-highlight {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
}

.legal-highlight p:last-child {
    margin-bottom: 0;
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 768px) {
    .legal-hero .section-title {
        font-size: 2rem;
    }

    .legal-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .legal-toc {
        position: static;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }
}
