﻿/* ===================================
   Refund & Cancellation - Responsive Stylesheet
   Mobile-First Design with Fluid Typography
   =================================== */

/* Base Container */
.policy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw + 0.5rem, 2.5rem) clamp(1rem, 2.5vw, 1.25rem);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
    color: #333;
}

/* Header Section */
.policy-header {
    text-align: center;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.25rem);
    padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
    border-bottom: 3px solid teal;
}

    .policy-header h1 {
        font-size: clamp(1.875rem, 4vw + 0.5rem, 2.5rem);
        font-weight: 700;
        color: teal;
        margin-bottom: 0.75rem;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

.last-updated {
    font-style: italic;
    color: #666;
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    line-height: 1.5;
}

/* Policy Sections */
.policy-section {
    margin-bottom: clamp(1.75rem, 3.5vw, 2.25rem);
}

    .policy-section h2 {
        font-size: clamp(1.5rem, 3vw + 0.25rem, 1.875rem);
        font-weight: 700;
        color: teal;
        margin-top: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: clamp(0.875rem, 1.75vw, 1.125rem);
        line-height: 1.3;
        letter-spacing: -0.01em;
    }

    .policy-section h3 {
        font-size: clamp(1.125rem, 2.2vw + 0.15rem, 1.375rem);
        font-weight: 600;
        color: #2c3e50;
        margin-top: clamp(1rem, 2vw, 1.375rem);
        margin-bottom: clamp(0.625rem, 1.25vw, 0.75rem);
        line-height: 1.4;
    }

    /* Paragraph Styling */
    .policy-section p {
        margin-bottom: clamp(0.875rem, 1.75vw, 1.125rem);
        text-align: justify;
        margin-left: clamp(0.5rem, 2vw, 2.5rem);
        font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
        line-height: 1.7;
        color: #444;
    }

    /* List Styling - Unordered Lists */
    .policy-section ul {
        margin-left: clamp(2rem, 3.5vw, 4rem);
        margin-bottom: clamp(0.875rem, 1.75vw, 1.125rem);
        padding-left: 0;
        list-style-type: disc;
    }

        .policy-section ul li {
            margin-bottom: 0.625rem;
            font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
            line-height: 1.65;
            padding-left: 0.375rem;
            color: #444;
        }

            .policy-section ul li strong {
                color: #1a1a1a;
                font-weight: 600;
            }

    /* List Styling - Ordered Lists */
    .policy-section ol {
        margin-left: clamp(2rem, 3.5vw, 4rem);
        margin-bottom: clamp(0.875rem, 1.75vw, 1.125rem);
        padding-left: 0;
        list-style-type: decimal;
        list-style-position: outside;
    }

        .policy-section ol li {
            margin-bottom: 0.625rem;
            font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
            line-height: 1.65;
            padding-left: 0.5rem;
            color: #444;
        }

            .policy-section ol li strong {
                color: #1a1a1a;
                font-weight: 600;
            }

ul {
    list-style-type: disc;
    color: #444;
}

ol {
    list-style-type: decimal;
    color: #444;
}

/* Contact Box */
.contact-box {
    border: 2px solid teal;
    padding: clamp(1.125rem, 2.5vw, 1.5rem);
    margin: clamp(1.25rem, 2.5vw, 1.5rem) 0;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
    box-shadow: 0 3px 8px rgba(0, 128, 128, 0.1);
    transition: box-shadow 0.3s ease;
}

    .contact-box:hover {
        box-shadow: 0 5px 15px rgba(0, 128, 128, 0.15);
    }

    .contact-box h3 {
        color: teal;
        margin-top: 0;
        margin-bottom: 0.875rem;
        font-size: clamp(1.125rem, 2.2vw, 1.375rem);
        font-weight: 600;
    }

    .contact-box p {
        margin-left: 0;
        margin-bottom: 0.625rem;
        font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
        line-height: 1.6;
        text-align: left;
    }

        .contact-box p:last-child {
            margin-bottom: 0;
        }

    .contact-box br {
        display: block;
        content: "";
        margin: 0.5rem 0;
    }

/* Typography Utilities */
strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Table Styling - Responsive */
table {
    width: 100%;
    border-collapse: collapse;
    margin: clamp(1.25rem, 2.5vw, 1.5rem) 0;
    font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    overflow: hidden;
}

    table th,
    table td {
        border: 1px solid #ddd;
        padding: clamp(0.75rem, 1.5vw, 1rem);
        text-align: left;
    }

    table th {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
        letter-spacing: 0.025em;
    }

    table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    table tr:hover {
        background-color: #e9ecef;
        transition: background-color 0.2s ease;
    }

    table td {
        color: #444;
    }

/* ===================================
   Responsive Breakpoints
   =================================== */

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .policy-container {
        padding: 1.75rem 1.125rem;
    }

    .policy-header {
        margin-bottom: 1.75rem;
        padding-bottom: 1.125rem;
    }

    .policy-section {
        margin-bottom: 1.75rem;
    }

        .policy-section p {
            text-align: left;
            margin-left: 1.125rem;
        }

        .policy-section ul,
        .policy-section ol {
            margin-left: 2.25rem;
        }

    .contact-box {
        padding: 1.125rem;
    }

    table {
        font-size: 0.9375rem;
    }

        table th,
        table td {
            padding: 0.75rem;
        }
}

/* Mobile Landscape (600px and below) */
@media (max-width: 600px) {
    .policy-container {
        padding: 1.5rem 1rem;
    }

    .policy-header h1 {
        font-size: 1.875rem;
    }

    .policy-section h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .policy-section h3 {
        font-size: 1.125rem;
    }

    .policy-section p {
        margin-left: 0.75rem;
        font-size: 0.9375rem;
    }

    .policy-section ul,
    .policy-section ol {
        margin-left: 1.75rem;
    }

        .policy-section ul li,
        .policy-section ol li {
            font-size: 0.9375rem;
        }

    table {
        font-size: 0.875rem;
    }

        table th,
        table td {
            padding: 0.625rem;
        }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    .policy-container {
        padding: 1.25rem 0.875rem;
    }

    .policy-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

        .policy-header h1 {
            font-size: 1.75rem;
            margin-bottom: 0.625rem;
        }

    .last-updated {
        font-size: 0.875rem;
    }

    .policy-section {
        margin-bottom: 1.5rem;
    }

        .policy-section h2 {
            font-size: 1.4rem;
            margin-top: 1.25rem;
            margin-bottom: 0.75rem;
        }

        .policy-section h3 {
            font-size: 1.0625rem;
            margin-top: 1rem;
            margin-bottom: 0.625rem;
        }

        .policy-section p {
            margin-left: 0.5rem;
            font-size: 0.9375rem;
            text-align: left;
        }

        .policy-section ul,
        .policy-section ol {
            margin-left: 1.5rem;
        }

            .policy-section ul li,
            .policy-section ol li {
                font-size: 0.9375rem;
                margin-bottom: 0.5rem;
                padding-left: 0.25rem;
            }

    .contact-box {
        padding: 1rem;
        border-radius: 0.375rem;
    }

        .contact-box p {
            font-size: 0.9375rem;
        }

    /* Responsive Table for Mobile - Two Column Layout */
    table {
        display: table;
        width: 100%;
        font-size: 0.875rem;
        border-radius: 0.375rem;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

        table thead {
            display: table-header-group;
        }

        table tbody {
            display: table-row-group;
        }

        table tr {
            display: table-row;
        }

        table th {
            display: table-cell;
            font-size: 0.8125rem;
            padding: 0.75rem 0.5rem;
            text-align: center;
        }

        table td {
            display: table-cell;
            padding: 0.875rem 0.5rem;
            text-align: center;
            vertical-align: middle;
            border: 1px solid #ddd;
            font-size: 0.875rem;
        }

        table tr:hover {
            background-color: #f8f9fa;
        }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .policy-container {
        padding: 1rem 0.75rem;
    }

    .policy-header h1 {
        font-size: 1.5rem;
    }

    .policy-section h2 {
        font-size: 1.25rem;
    }

    .policy-section h3 {
        font-size: 1rem;
    }

    .policy-section p,
    .policy-section ul li,
    .policy-section ol li {
        font-size: 0.875rem;
    }

    .policy-section ul,
    .policy-section ol {
        margin-left: 1.25rem;
    }

    table th {
        font-size: 0.75rem;
        padding: 0.625rem 0.375rem;
    }

    table td {
        font-size: 0.8125rem;
        padding: 0.75rem 0.375rem;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .policy-container {
        padding: 3rem 2rem;
    }

    .policy-section p,
    .policy-section ul li,
    .policy-section ol li {
        font-size: 1.0625rem;
        line-height: 1.75;
    }

    .contact-box {
        padding: 1.5rem;
    }

    table {
        font-size: 1.0625rem;
    }

        table th,
        table td {
            padding: 1rem;
        }
}

/* Print Styles */
@media print {
    .policy-container {
        max-width: 100%;
        padding: 0;
    }

    .policy-header {
        border-bottom: 2px solid #000;
    }

    .contact-box {
        border: 1px solid #000;
        box-shadow: none;
        background: #fff;
        page-break-inside: avoid;
    }

    table {
        box-shadow: none;
        page-break-inside: avoid;
    }

        table th {
            background: #333 !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }
}
