/**
 * terms.css - Стили страницы договора-оферты
 * Версия: 1.0
 */

/* =============================================
   BASE RESET (standalone page)
   ============================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.terms-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    padding: 20px;
    color: #374151;
    line-height: 1.7;
}

/* =============================================
   CONTAINER
   ============================================= */

.terms-container {
    max-width: 800px;
    margin: 0 auto;
}

/* =============================================
   HEADER
   ============================================= */

.terms-header {
    text-align: center;
    margin-bottom: 24px;
}

.terms-logo-link {
    display: inline-block;
}

.terms-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0px 0px 30px rgba(255, 255, 255, 0.5));
}

/* =============================================
   CARD (main content)
   ============================================= */

.terms-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.terms-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 4px;
}

.terms-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    margin-bottom: 4px;
}

.terms-meta {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

/* =============================================
   HEADINGS
   ============================================= */

.terms-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2dbe60;
}

.terms-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin-top: 20px;
    margin-bottom: 12px;
}

/* =============================================
   TEXT
   ============================================= */

.terms-card p {
    margin-bottom: 10px;
    font-size: 14px;
}

.terms-card ul {
    margin-bottom: 10px;
    padding-left: 24px;
}

.terms-card li {
    margin-bottom: 4px;
    font-size: 14px;
}

.terms-card a {
    color: #2dbe60;
    text-decoration: none;
}

.terms-card a:hover {
    text-decoration: underline;
}

.terms-card strong {
    color: #1e293b;
}

/* =============================================
   REQUISITES
   ============================================= */

.terms-requisites {
    margin-top: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.terms-requisites h2 {
    margin-top: 0;
    border-bottom-color: #94a3b8;
}

.terms-requisites p {
    margin-bottom: 4px;
}

/* =============================================
   VERSION
   ============================================= */

.terms-version {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* =============================================
   FOOTER
   ============================================= */

.terms-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 0 8px;
}

.terms-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.terms-footer a:hover {
    color: #ffffff;
}

.terms-footer span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 640px) {
    .terms-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .terms-title {
        font-size: 22px;
    }

    .terms-card h2 {
        font-size: 16px;
    }

    .terms-logo-img {
        height: 36px;
    }

    .terms-requisites {
        padding: 16px;
    }
}

@media print {
    body.terms-page {
        background: white;
        padding: 0;
    }

    .terms-header,
    .terms-footer {
        display: none;
    }

    .terms-card {
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
}
