/**
 * Content Page - Shared styles for public static content pages
 * (Terms, Privacy, and future legal/informational pages)
 *
 * Extracted from the duplicated <style> blocks that used to live inline in
 * page/privacy.php (.privacy-*) and page/terms.php (.terms-*) — same values,
 * only the class prefix differed. See _docs/system-core/PAGE_LAYOUT_STANDARD.md
 * for when to use these classes vs. the Component/BaseComponent pattern.
 *
 * Load via $extraStyles before including page/_parts/header.php:
 *   $extraStyles = '<link rel="stylesheet" href="' . UrlHelper::css('content-page.css') . '?v=' . APP_ASSET_VERSION . '">';
 */

/* ========================================
   CONTAINER
   ======================================== */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HEADER (title + last-updated date)
   Paired with the `content_page_header` component
   (src/Component/ContentPageHeader.php)
   ======================================== */
.content-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.content-page-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.content-page-header .content-page-subtitle {
    color: #555;
    font-size: 16px;
    margin-bottom: 10px;
}

.content-page-header .update-date {
    color: #666;
    font-size: 14px;
}

/* ========================================
   BODY TYPOGRAPHY
   ======================================== */
.content-page-body {
    line-height: 1.8;
    color: #444;
}

.content-page-body h2 {
    font-size: 24px;
    color: var(--brand-600, #2158d8);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.content-page-body h3 {
    font-size: 18px;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-page-body p {
    margin-bottom: 15px;
}

.content-page-body ul,
.content-page-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-page-body li {
    margin-bottom: 10px;
}

.content-page-body strong {
    color: #333;
    font-weight: 600;
}

/* ========================================
   CALLOUT BOXES
   ======================================== */
.highlight-box {
    background: linear-gradient(135deg, var(--brand-600, #2158d8)15, var(--cyan-600, #0e7490)15);
    border-left: 4px solid var(--brand-600, #2158d8);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.contact-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.contact-box h3 {
    margin-top: 0;
    color: var(--brand-600, #2158d8);
}

/* ========================================
   DATA TABLE (responsive)
   ======================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.data-table th,
.data-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

.data-table th {
    background: linear-gradient(135deg, var(--brand-600, #2158d8), var(--cyan-600, #0e7490));
    color: white;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

/* ========================================
   BACK LINK (CTA back to dashboard)
   ======================================== */
.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--brand-600, #2158d8), var(--cyan-600, #0e7490));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 88, 216, 0.3);
}
