/* ==========================================
   Legal Pages Styles (Terms & Privacy)
   ========================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0d1f3c 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.page-header > .container > p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.breadcrumb span {
    color: var(--accent-color);
}

/* Legal Content Section */
.legal-content {
    padding: 80px 0 100px;
    background: var(--bg-light);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sidebar-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-card.highlight {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
    border: none;
}

.sidebar-card.highlight h4 {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-card.highlight p {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.sidebar-card.highlight p:last-child {
    margin-bottom: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav li a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Main Content */
.legal-main {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.legal-intro {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.legal-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

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

/* Legal Sections */
.legal-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.legal-section ul li strong {
    color: var(--text-primary);
}

/* Contact Box */
.contact-box {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 25px 30px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
}

.contact-box p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-box p:first-child {
    margin-bottom: 15px;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

.contact-box i {
    color: var(--primary-color);
    width: 18px;
}

.contact-box a {
    color: var(--primary-color);
}

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

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
    border-radius: var(--border-radius-md);
    padding: 25px 30px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.info-box i {
    font-size: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .legal-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sidebar-card {
        margin-bottom: 0;
    }

    .legal-main {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }

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

    .legal-content {
        padding: 50px 0 70px;
    }

    .legal-sidebar {
        grid-template-columns: 1fr;
    }

    .legal-main {
        padding: 30px 25px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.05rem;
    }

    .contact-box,
    .info-box {
        padding: 20px;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 120px 0 50px;
    }

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

    .breadcrumb {
        font-size: 12px;
    }

    .legal-main {
        padding: 25px 20px;
    }

    .sidebar-card {
        padding: 20px;
    }
}

/* ==========================================
   Thank You Page Styles
   ========================================== */

.thank-you-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 50%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.thank-you-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.03) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.thank-you-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 60px 50px;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-bounce 0.6s ease-out, success-pulse 2s ease-in-out 0.6s infinite;
}

@keyframes success-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes success-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(0, 212, 170, 0); }
}

.success-icon i {
    font-size: 60px;
    color: #fff;
}

.thank-you-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0066ff 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thank-you-content .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.thank-you-content > p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Next Steps */
.next-steps {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
}

.next-steps h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Contact Meanwhile */
.contact-meanwhile {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.contact-meanwhile > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-option:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-option i {
    font-size: 1.1rem;
}

.contact-option.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* Thank You Actions */
.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.thank-you-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.thank-you-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    color: #fff;
    border: none;
}

.thank-you-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.thank-you-actions .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.thank-you-actions .btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Thank You Page */
@media (max-width: 768px) {
    .thank-you-section {
        padding: 140px 15px 60px;
    }

    .thank-you-content {
        padding: 40px 25px;
    }

    .success-icon {
        width: 100px;
        height: 100px;
    }

    .success-icon i {
        font-size: 48px;
    }

    .next-steps {
        padding: 30px 20px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .contact-option {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .thank-you-content {
        padding: 30px 20px;
    }

    .thank-you-content h1 {
        font-size: 1.75rem;
    }

    .thank-you-content .lead {
        font-size: 1.1rem;
    }

    .thank-you-actions {
        flex-direction: column;
    }

    .thank-you-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
