/* ==========================
   PAGE HEADER
   ========================== */
.page-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 52px;
    font-weight: 800;
    margin: 20px 0;
    line-height: 1.1;
}

.page-header p {
    font-size: 20px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.legal-header {
    padding: 60px 0 40px;
}

.legal-header h1 {
    font-size: 42px;
}

.legal-header p {
    font-size: 14px;
    color: var(--gray);
}

/* ==========================
   PAGE SECTIONS
   ========================== */
.page-section {
    padding: 80px 0;
}

.bg-light {
    background: var(--light);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col-grid h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.two-col-grid p {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* ==========================
   VALUES GRID
   ========================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ==========================
   STATS GRID
   ========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-big strong {
    display: block;
    font-size: 52px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-big span {
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
}

/* ==========================
   BLOG STYLES
   ========================== */
.blog-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-image {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img {
    font-size: 80px;
}

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: white;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.blog-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================
   NEWSLETTER BOX
   ========================== */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    margin: 60px 0;
}

.newsletter-box h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.newsletter-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.newsletter-form button {
    background: white;
    color: var(--primary);
}

.newsletter-form button:hover {
    background: var(--light);
}

/* ==========================
   CONTACT PAGE
   ========================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.contact-method p {
    color: var(--gray);
    margin-bottom: 6px;
    font-size: 14px;
}

.contact-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.contact-link:hover {
    text-decoration: underline;
}

/* ==========================
   CONTACT FORM
   ========================== */
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-form-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.contact-form-card > p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.contact-form button {
    width: 100%;
}

/* ==========================
   QUICK HELP GRID
   ========================== */
.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.help-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.help-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.help-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.help-card p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

/* ==========================
   LEGAL PAGES
   ========================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.legal-intro {
    background: var(--light);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin-bottom: 40px;
}

.legal-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.legal-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.legal-content h3 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--dark);
}

.legal-content p {
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 14px;
    font-size: 15px;
}

.legal-content ul {
    margin: 14px 0 20px 24px;
}

.legal-content li {
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 15px;
}

.legal-content a {
    color: var(--primary);
    font-weight: 500;
}

.contact-box {
    background: var(--light);
    padding: 24px;
    border-radius: 12px;
    margin: 20px 0;
}

.contact-box p {
    margin-bottom: 8px;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

.disclaimer-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 20px 0;
}

.disclaimer-box p {
    margin-bottom: 12px;
}

.guarantee-banner {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.guarantee-icon {
    font-size: 80px;
    flex-shrink: 0;
}

.guarantee-banner h2 {
    color: white !important;
    border: none !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 28px !important;
}

.guarantee-banner p {
    margin: 8px 0 0 0;
    font-size: 16px;
    opacity: 0.95;
}

.steps-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--light);
    border-radius: 12px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-item h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.step-item p {
    margin: 0;
    color: var(--gray);
}

.legal-footer-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

.legal-footer-nav a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

.legal-footer-nav a:hover {
    background: var(--light);
}

/* ==========================
   NAV ACTIVE STATE
   ========================== */
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 968px) {
    .two-col-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .legal-content {
        padding: 30px 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .guarantee-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
}