/* frontend/assets/css/static-pages.css */
/* Shared CSS for: about.ejs, terms.ejs, privacy.ejs */

/* ============================================================
   BASE
   ============================================================ */
.sp-page-container {
    min-height: 100vh;
    background: #f0f5fc;
}

.header {
  box-shadow: none;
  background: linear-gradient(135deg, #082226 10%, #0a2a2f 40%, #1b5762 75%, #346f79 95%);
}

/* ============================================================
   HERO — shared across all three pages
   ============================================================ */
.sp-hero {
    background: linear-gradient(150deg, #071e22 0%, #0B2E33 35%, #1e5f6b 70%, #4F7C82 100%);
    padding: 120px 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: rgba(184,227,233,0.05);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.sp-hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(79,124,130,0.07);
    bottom: -60px;
    left: -60px;
    pointer-events: none;
}

.sp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.sp-hero-badge {
    display: inline-block;
    background: rgba(184,227,233,0.12);
    border: 1px solid rgba(184,227,233,0.2);
    color: #B8E3E9;
    font-size: 11px;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sp-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    text-shadow: none;
}

.sp-hero p {
    font-size: 15px;
    color: rgba(184,227,233,0.72);
    line-height: 1.7;
    margin: 0 auto;
    opacity: 1;
}

.sp-hero-wave {
    display: block;
    width: 100%;
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   BODY
   ============================================================ */
.sp-body {
    padding: 52px 48px 64px;
}

.sp-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
   ABOUT — Stats
   ============================================================ */
.ab-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 52px;
}

.ab-stat {
    background: #fff;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    border: 1px solid #e0eaf0;
    box-shadow: 0 4px 0 #B8E3E9;
    transition: transform 0.2s;
}

.ab-stat:hover {
    transform: translateY(-3px);
}

.ab-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #0B2E33;
}

.ab-stat-lbl {
    font-size: 11px;
    color: #93B1B5;
    font-weight: 600;
    margin-top: 5px;
}

/* ============================================================
   ABOUT — Section Grid
   ============================================================ */
.ab-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 52px;
}

.ab-section-grid--reverse {
    direction: rtl;
}

.ab-section-grid--reverse > * {
    direction: ltr;
}

.ab-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0B2E33;
    margin-bottom: 16px;
}

.ab-text p {
    font-size: 14px;
    color: #4a6a6e;
    line-height: 1.8;
    margin-bottom: 14px;
}

.ab-text p strong {
    color: #0B2E33;
}

.ab-illustration {
    background: #0B2E33;
    border-radius: 20px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
}

.ab-illustration--dark {
    background: #0f3a40;
}

/* ============================================================
   ABOUT — Values
   ============================================================ */
.ab-values-section {
    margin-bottom: 52px;
}

.ab-values-title {
    font-size: 24px;
    font-weight: 800;
    color: #0B2E33;
    text-align: center;
    margin-bottom: 28px;
}

.ab-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ab-value-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px 22px;
    border: 1px solid #e0eaf0;
    box-shadow: 0 4px 0 #B8E3E9;
    transition: transform 0.2s;
}

.ab-value-card:hover {
    transform: translateY(-3px);
}

.ab-value-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #0B2E33;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ab-value-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0B2E33;
    margin-bottom: 8px;
}

.ab-value-card p {
    font-size: 13px;
    color: #6b8a8e;
    line-height: 1.7;
}

/* ============================================================
   ABOUT — CTA Banner
   ============================================================ */
.ab-cta {
    background: linear-gradient(135deg, #0B2E33, #4F7C82);
    border-radius: 20px;
    padding: 44px;
    text-align: center;
}

.ab-cta h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.ab-cta p {
    font-size: 14px;
    color: rgba(184,227,233,0.8);
    margin-bottom: 26px;
    line-height: 1.6;
}

.ab-cta-btn {
    background: #B8E3E9;
    color: #0B2E33;
    padding: 13px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.ab-cta-btn:hover {
    transform: translateY(-2px);
    color: #0B2E33;
    text-decoration: none;
}

/* ============================================================
   DOCUMENT LAYOUT — Terms & Privacy
   ============================================================ */
.doc-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: start;
}

/* Sidebar */
.doc-sidebar {
    position: sticky;
    top: 24px;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid #e0eaf0;
    box-shadow: 0 3px 0 #B8E3E9;
}

.doc-sidebar-title {
    font-size: 10px;
    font-weight: 700;
    color: #93B1B5;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f5fc;
}

.doc-nav-item {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #4F7C82;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.doc-nav-item:hover {
    background: #f0f5fc;
    color: #0B2E33;
}

.doc-nav-item.active {
    background: #f0f5fc;
    color: #0B2E33;
    border-left: 3px solid #4F7C82;
    border-radius: 0 8px 8px 0;
    padding-left: 9px;
}

.doc-last-updated {
    font-size: 10px;
    color: #93B1B5;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e0eaf0;
}

/* Doc content sections */
.doc-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #e0eaf0;
    scroll-margin-top: 32px;
}

.doc-badge {
    display: inline-block;
    background: #0B2E33;
    color: #B8E3E9;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.doc-content h2 {
    font-size: 16px;
    font-weight: 800;
    color: #0B2E33;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f5fc;
}

.doc-content p {
    font-size: 13px;
    color: #4a6a6e;
    line-height: 1.8;
    margin-bottom: 12px;
}

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

.doc-content ul {
    font-size: 13px;
    color: #4a6a6e;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 20px;
}

.doc-content ul li {
    margin-bottom: 5px;
}

.doc-content strong {
    color: #0B2E33;
    font-weight: 700;
}

.doc-highlight {
    background: #f0f5fc;
    border-left: 3px solid #4F7C82;
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    color: #4a6a6e;
    margin: 14px 0;
    line-height: 1.7;
}

.doc-link {
    color: #4F7C82;
    font-weight: 600;
    text-decoration: none;
}

.doc-link:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .sp-body {
        padding: 36px 24px 48px;
    }

    .sp-hero {
        padding: 120px 24px 0;
    }

    .sp-hero h1 {
        font-size: 28px;
    }

    .ab-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ab-section-grid {
        grid-template-columns: 1fr;
    }

    .ab-section-grid--reverse {
        direction: ltr;
    }

    .ab-illustration {
        min-height: 180px;
    }

    .ab-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .sp-hero h1 {
        font-size: 24px;
    }

    .ab-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ab-values-grid {
        grid-template-columns: 1fr;
    }

    .ab-cta {
        padding: 28px 20px;
    }

    .ab-cta h2 {
        font-size: 20px;
    }

    .doc-section {
        padding: 18px 20px;
    }

    .sp-body {
        padding: 24px 16px 40px;
    }
}
