/* ==========================================================================
   Static Pages — Terms, Privacy, Contacts
   Editorial legal-document aesthetic with refined typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

/* ---------- Page Shell ---------- */
.static-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* ---------- Page Header ---------- */
.static-page-header {
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 0;
    background: #fff;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.static-page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 2rem;
    width: 60px;
    height: 3px;
    background: #F87171;
    border-radius: 2px;
}

.static-page-header h1 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.static-page-intro {
    font-size: 0.95rem;
    color: #777;
    margin: 0.75rem 0 0;
    line-height: 1.6;
}

/* ---------- Content Area ---------- */
.static-page-content {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 2rem 2rem 2.5rem;
}

/* ---------- Sections ---------- */
.terms-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section h2 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

.terms-section h3 {
    font-size: 1rem;
    color: #333;
    margin: 1.25rem 0 0.6rem;
    font-weight: 600;
}

/* ---------- Body Text ---------- */
.terms-section p {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0 0 0.75rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

/* ---------- Lists ---------- */
.terms-section ul {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1.25rem;
    list-style: none;
}

.terms-section ul li {
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 0.85rem;
}

.terms-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #F87171;
}

/* Hide bullet when item starts with а), б), в) etc. */
.terms-section ul li:first-letter {
    /* Keep Cyrillic list markers visually distinct */
}

/* ---------- Links ---------- */
.terms-section a {
    color: #F87171;
    text-decoration: none;
    border-bottom: 1px solid rgba(248, 113, 113, 0.3);
    transition: border-color 0.2s ease;
}

.terms-section a:hover {
    border-bottom-color: #F87171;
}

.terms-section strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* ---------- Contact Info Box ---------- */
.contact-info .contact-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fef8f8;
    border: 1px solid #fde8e8;
    border-left: 3px solid #F87171;
    border-radius: 4px;
    margin-top: 0.75rem;
}

.contact-box svg {
    flex-shrink: 0;
    color: #F87171;
    margin-top: 0.15rem;
}

.contact-box div {
    flex: 1;
}

.contact-box strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.contact-box a {
    font-size: 0.95rem;
    color: #F87171;
    text-decoration: none;
    font-weight: 500;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* ---------- Footer ---------- */
.terms-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.terms-footer p {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .static-page {
        padding: 0.75rem 0.5rem 2rem;
    }

    .static-page-header {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .static-page-header::after {
        left: 1.25rem;
    }

    .static-page-header h1 {
        font-size: 1.5rem;
    }

    .static-page-content {
        padding: 1.5rem 1.25rem 2rem;
    }

    .terms-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.1rem;
    }

    .terms-section p {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
    }
}

@media (max-width: 480px) {
    .static-page-header {
        padding: 1.25rem 1rem 1.25rem;
    }

    .static-page-header::after {
        left: 1rem;
        width: 40px;
    }

    .static-page-header h1 {
        font-size: 1.3rem;
    }

    .static-page-content {
        padding: 1.25rem 1rem 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.05rem;
    }

    .terms-section p {
        font-size: 0.85rem;
    }

    .terms-section ul {
        font-size: 0.85rem;
        padding-left: 0.75rem;
    }
}
