/* ===================================
   LEGAL PAGES STYLES
   Terms & Privacy Policy
   =================================== */

/* Navbar Styles for Legal Pages */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

.navbar.scrolled {
    background: rgba(44, 44, 44, 0.78) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.legal-page {
    min-height: 100vh;
    background: #faf9f7;
    padding: 0 0 60px;
    overflow-x: hidden;
}

.legal-header {
    position: relative;
    text-align: center;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 150px clamp(20px, 5vw, 80px) 90px;
    border-radius: 0;
    overflow: hidden;
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.legal-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
        url('https://images.unsplash.com/photo-1459767129954-1b1c1f9b9ace?auto=format&fit=crop&w=1920');
    background-size: cover;
    background-position: center;
}

.legal-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(250, 249, 247, 0) 0%, #faf9f7 100%);
    z-index: 1;
}

.legal-header h1 {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.3vw, 3.8rem);
    color: #ffffff;
    margin: 0 0 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 760px;
    line-height: 1.2;
    text-align: center;
}

.legal-header h1 i {
    color: #C17956;
    font-size: 2.2rem;
}

.legal-update {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    margin: 0;
    text-align: center;
}

.legal-content {
    background: white;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid #ececec;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-width: 920px;
    margin: -2.5rem auto 0;
    position: relative;
    z-index: 3;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee4d8;
}

.legal-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: #C17956;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h3 {
    font-size: 1.3rem;
    color: #2b2520;
    margin: 25px 0 15px;
    font-weight: 600;
}

.legal-section p {
    color: #4f4338;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.legal-section a {
    color: #C17956;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #a05835;
    text-decoration: underline;
}

.legal-list {
    margin: 20px 0;
}

.legal-list p {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}

.legal-list p::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #C17956;
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-contact {
    background: #fbf7f2;
    border-left: 4px solid #C17956;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.legal-contact p {
    margin: 8px 0;
    color: #2b2520;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-contact i {
    color: #C17956;
    font-size: 1.1rem;
    width: 20px;
}

.legal-highlight {
    background: linear-gradient(135deg, #fff7f1 0%, #fcebdd 100%);
    border: 2px solid #C17956;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.legal-highlight p {
    color: #2b2520;
    margin-bottom: 8px;
}

.legal-highlight strong {
    color: #a86545;
    font-size: 1.1rem;
}

.legal-footer-note {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #3b82f6;
    padding: 25px;
    border-radius: 10px;
    margin-top: 40px;
}

.legal-footer-note p {
    color: #1e40af;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legal-footer-note i {
    color: #3b82f6;
    font-size: 1.3rem;
    margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 0 0 40px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
        gap: 10px;
    }

    .legal-header {
        min-height: 46vh;
        padding: 120px 20px 60px;
    }

    .legal-header::after {
        height: 110px;
    }

    .legal-header h1 i {
        font-size: 1.8rem;
    }

    .legal-content {
        padding: 16px;
        border-radius: 12px;
        margin-top: -1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-section p {
        font-size: 0.95rem;
    }

    .legal-contact,
    .legal-highlight,
    .legal-footer-note {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.5rem;
    }

    .legal-content {
        padding: 25px 15px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-list p {
        padding-left: 20px;
    }
}

/* ===================================
   CANCELLATION POLICY SPECIFIC STYLES
   =================================== */

.cancellation-policies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.policy-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.policy-header {
    padding: 25px;
    color: white;
    text-align: center;
}

.policy-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.policy-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.policy-card.flexible .policy-header {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.policy-card.moderate .policy-header {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.policy-card.strict .policy-header {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.policy-card.non-refundable .policy-header {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

.policy-content {
    padding: 25px;
}

.policy-description {
    color: #718096;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.policy-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-details li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.policy-details li:last-child {
    border-bottom: none;
}

.policy-details strong {
    color: #2d3748;
    font-weight: 600;
}

/* Steps List for Cancellation Process */
.steps-list {
    margin: 25px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #C17956;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #C17956 0%, #a05835 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
}

/* Responsive for Cancellation Policies */
@media (max-width: 768px) {
    .cancellation-policies {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
