/* ==========================================
   Legal Pages Styles
   Privacy Policy, Terms of Use, Credit Authorization
   ========================================== */

/* Legal Page Layout */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--white);
}

/* Legal Header */
.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-lighter);
}

.legal-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.legal-updated {
    font-size: 15px;
    color: var(--gray);
    font-weight: 500;
}

/* Legal Content */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-intro {
    font-size: 18px;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 16px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.legal-content > p {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-lighter);
}

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

.legal-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

/* Lists */
.legal-section ul {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.7;
}

/* Legal Note (highlighted text) */
.legal-note {
    background: rgba(52, 97, 253, 0.06);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--black);
    margin-top: 16px;
}

/* Legal Email */
.legal-email {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    padding: 14px 28px;
    background: rgba(52, 97, 253, 0.08);
    border-radius: var(--radius-xl);
    margin-top: 8px;
    transition: var(--transition);
}

.legal-email:hover {
    background: rgba(52, 97, 253, 0.15);
    transform: translateY(-2px);
}

/* Legal Navigation */
.legal-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-lighter);
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.legal-nav a:hover {
    color: var(--primary);
    background: rgba(52, 97, 253, 0.08);
}

.legal-nav a::before {
    content: '→';
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .legal-header h1 {
        font-size: 32px;
    }

    .legal-intro {
        font-size: 16px;
        padding: 20px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .legal-section h2::before {
        height: 20px;
    }

    .legal-nav {
        flex-direction: column;
        gap: 12px;
    }

    .legal-nav a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 28px;
    }

    .legal-section h2 {
        font-size: 18px;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 15px;
    }

    .legal-email {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* ==========================================
   Contact Page Styles
   ========================================== */

/* Contact Hero */
.contact-hero {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(52, 97, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(52, 97, 253, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-hero-content p {
    font-size: 18px;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Contact Main */
.contact-main {
    padding: 80px 0 100px;
    background: var(--white);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 36px 28px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-lighter);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.contact-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.contact-card-content p {
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

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

.contact-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(52, 97, 253, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
}

/* Active nav link */
.nav a.active {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 60px;
    }

    .contact-hero-content h1 {
        font-size: 32px;
    }

    .contact-main {
        padding: 60px 0 80px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .contact-card {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .contact-hero-content h1 {
        font-size: 28px;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .contact-card-icon {
        width: 56px;
        height: 56px;
    }

    .contact-card-content h3 {
        font-size: 18px;
    }

    .company-card {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }
}