/* ==========================================================================
   CIXIO — Legal Pages Stylesheet
   ========================================================================== */

/* ── Page layout ─────────────────────────────────────────────────────────── */
.legal-page {
    background: #f8fafc;
    min-height: calc(100vh - 80px);
    padding: 2.5rem 0 5rem;
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
    list-style: none;
}
.legal-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}
.legal-breadcrumb a:hover { text-decoration: underline; }
.legal-breadcrumb span { color: #cbd5e1; }

/* ── Header block ────────────────────────────────────────────────────────── */
.legal-header {
    margin-bottom: 1.75rem;
}

.legal-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.legal-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.legal-updated {
    font-size: 0.83rem;
    color: #94a3b8;
    margin: 0;
}

/* ── Content card ────────────────────────────────────────────────────────── */
.legal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2.25rem 2.5rem;
    font-size: 0.94rem;
    line-height: 1.75;
    color: #374151;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
.legal-content h1 { display: none; }

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2rem 0 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e2e8f0;
}
.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.5rem 0 0.4rem;
}

.legal-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin: 1.1rem 0 0.35rem;
}

.legal-content p {
    margin: 0 0 0.85rem;
}

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

.legal-content ul,
.legal-content ol {
    margin: 0.35rem 0 0.85rem 1.5rem;
}

.legal-content li { margin-bottom: 0.35rem; }

.legal-content strong { color: #1e293b; }

.legal-content code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    padding: 0.1em 0.35em;
    font-size: 0.86em;
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--primary-color);
}

.legal-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.75rem 0;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    margin: 0.75rem 0 1.25rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.legal-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-table td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: top;
}

.legal-table tr:last-child td { border-bottom: none; }

/* ── Contact note ────────────────────────────────────────────────────────── */
.legal-contact-note {
    margin-top: 1.25rem;
    font-size: 0.86rem;
    color: #64748b;
    padding: 0.85rem 1.1rem;
    background: #f8fafc;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}
.legal-contact-note a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.legal-contact-note a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .legal-content { padding: 1.25rem 1rem; }
    .legal-header h1 { font-size: 1.45rem; }
}

