﻿/* ===================================
   Terms of Service - 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,
.policy-section-1 {
    margin-bottom: clamp(1.75rem, 3.5vw, 2.25rem);
}

    .policy-section h2,
    .policy-section-1 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;
    }

    .policy-section-1 p {
        margin-bottom: clamp(0.875rem, 1.75vw, 1.125rem);
        text-align: justify;
        font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
        line-height: 1.7;
        color: #444;
    }

    /* List Styling */
    .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;
            }

ul {
    list-style-type: disc;
    color: #444;
}

/* Alert and Warning Boxes */
.important-note {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    padding: clamp(1rem, 2.25vw, 1.25rem);
    margin: clamp(1.25rem, 2.5vw, 1.5rem) 0;
    font-weight: 500;
    font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
    line-height: 1.65;
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.15);
}

    .important-note strong {
        display: block;
        margin-bottom: 0.5rem;
        color: #856404;
    }

.warning-box {
    background: linear-gradient(135deg, #fdeaea 0%, #f8d7da 100%);
    border-left: 4px solid #dc3545;
    padding: clamp(1rem, 2.25vw, 1.25rem);
    margin: clamp(1.25rem, 2.5vw, 1.5rem) 0;
    font-weight: 500;
    font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
    line-height: 1.65;
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
}

    .warning-box strong {
        display: block;
        margin-bottom: 0.5rem;
        color: #721c24;
    }

/* 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;
        }

    /* Link Styling */
    .contact-box a {
        color: teal;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        border-bottom: 1px solid transparent;
    }

        .contact-box a:hover {
            color: #006666;
            border-bottom-color: #006666;
        }

        .contact-box a:focus {
            outline: 2px solid teal;
            outline-offset: 2px;
            border-radius: 2px;
        }

/* Typography Utilities */
strong {
    font-weight: 700;
    color: #1a1a1a;
}

b {
    font-weight: 700;
    color: #1a1a1a;
}

/* ===================================
   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,
    .policy-section-1 {
        margin-bottom: 1.75rem;
    }

        .policy-section p,
        .policy-section-1 p {
            text-align: left;
        }

        .policy-section p {
            margin-left: 1.125rem;
        }

        .policy-section ul {
            margin-left: 2.25rem;
        }

    .contact-box,
    .important-note,
    .warning-box {
        padding: 1.125rem;
    }
}

/* 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,
    .policy-section-1 h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .policy-section h3 {
        font-size: 1.125rem;
    }

    .policy-section p,
    .policy-section-1 p {
        font-size: 0.9375rem;
    }

    .policy-section p {
        margin-left: 0.75rem;
    }

    .policy-section ul {
        margin-left: 1.75rem;
    }

        .policy-section ul li {
            font-size: 0.9375rem;
        }
}

/* 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,
    .policy-section-1 {
        margin-bottom: 1.5rem;
    }

        .policy-section h2,
        .policy-section-1 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-1 p {
            font-size: 0.9375rem;
        }

        .policy-section ul {
            margin-left: 1.5rem;
        }

            .policy-section ul li {
                font-size: 0.9375rem;
                margin-bottom: 0.5rem;
            }

    .contact-box,
    .important-note,
    .warning-box {
        padding: 1rem;
        border-radius: 0.375rem;
    }

        .contact-box p {
            font-size: 0.9375rem;
        }

    .important-note,
    .warning-box {
        font-size: 0.9375rem;
    }
}

/* 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,
    .policy-section-1 h2 {
        font-size: 1.25rem;
    }

    .policy-section h3 {
        font-size: 1rem;
    }

    .policy-section p,
    .policy-section-1 p,
    .policy-section ul li {
        font-size: 0.875rem;
    }

    .policy-section ul {
        margin-left: 1.25rem;
    }

    .important-note,
    .warning-box,
    .contact-box p {
        font-size: 0.875rem;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .policy-container {
        padding: 3rem 2rem;
    }

    .policy-section p,
    .policy-section-1 p,
    .policy-section ul li {
        font-size: 1.0625rem;
        line-height: 1.75;
    }

    .contact-box,
    .important-note,
    .warning-box {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .policy-container {
        max-width: 100%;
        padding: 0;
    }

    .policy-header {
        border-bottom: 2px solid #000;
    }

    .contact-box,
    .important-note,
    .warning-box {
        border: 1px solid #000;
        box-shadow: none;
        background: #fff;
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
