  * {
            font-family: 'Times New Roman', Times, serif;
            box-sizing: border-box;
        }

        body {
            font-family: 'Times New Roman', Times, serif;
            background-color: #f0f2f5;
            margin: 0;
            padding-top: clamp(60px, 12vh, 140px);
            line-height: 1.6;
        }

        .terms-wrapper {
            display: flex;
            justify-content: center;
            padding: clamp(15px, 4vw, 50px) clamp(8px, 3vw, 40px);
        }

        .terms-container {
            width: 100%;
            max-width: min(90vw, 1000px);
            background-color: #ffffff;
            box-shadow: 0 0 clamp(10px, 2vw, 20px) rgba(0, 0, 0, 0.1);
            border-radius: clamp(6px, 1.5vw, 12px);
            padding: clamp(15px, 4vw, 40px);
        }

        .scroll-box {
            max-height: clamp(350px, 60vh, 700px);
            overflow-y: auto;
            padding-right: clamp(8px, 1.5vw, 15px);
            -webkit-overflow-scrolling: touch;
        }

        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: clamp(15px, 3vw, 25px);
            font-size: clamp(1.3rem, 4vw, 2.2rem);
            line-height: 1.2;
        }

        h2 {
            color: #2c3e50;
            font-size: clamp(0.95rem, 2.5vw, 1.3rem);
            margin-top: clamp(15px, 3vw, 25px);
            line-height: 1.3;
        }

        p,
        li {
            font-size: clamp(0.8rem, 2vw, 1rem);
            line-height: 1.6;
            color: #333;
        }

        ul {
            padding-left: clamp(15px, 3vw, 20px);
            margin-top: 10px;
        }

        a {
            color: #0077cc;
            text-decoration: none;
            padding: 2px 0;
            margin: 2px 0;
            display: inline-block;
            transition: color 0.3s ease;
        }

        a:hover {
            text-decoration: underline;
            color: #005fa3;
        }

        .scroll-box::-webkit-scrollbar {
            width: clamp(6px, 1vw, 8px);
        }

        .scroll-box::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .scroll-box::-webkit-scrollbar-thumb {
            background: #bbb;
            border-radius: 4px;
        }

        .scroll-box::-webkit-scrollbar-thumb:hover {
            background: #888;
        }

        .terms-contact-footer {
            margin-top: clamp(25px, 5vw, 40px);
            font-size: clamp(0.75rem, 1.8vw, 0.85rem);
            color: #555;
            border-top: 1px solid #ddd;
            padding-top: clamp(10px, 2vw, 15px);
        }

        .terms-contact-footer ul {
            list-style: none;
            padding-left: 0;
        }

        .terms-contact-footer li {
            margin-bottom: clamp(5px, 1vw, 8px);
        }

        /* High DPI Displays */
        @supports (-webkit-min-device-pixel-ratio: 2) or (min-resolution: 192dpi) {
            .terms-container {
                box-shadow: 0 0 clamp(12px, 2.5vw, 20px) rgba(0, 0, 0, 0.12);
            }
        }

        /* Landscape orientation adjustments */
        @supports (max-height: 500px) and (orientation: landscape) {
            body {
                padding-top: clamp(40px, 8vh, 80px);
            }

            .scroll-box {
                max-height: min(250px, 50vh);
            }
        }

        /* Print Styles - Keep for printing functionality */
        @media print {
            body {
                background-color: white;
                padding-top: 0;
            }

            .terms-wrapper {
                padding: 0;
            }

            .terms-container {
                box-shadow: none;
                border-radius: 0;
                padding: 20px;
                max-width: 100%;
            }

            .scroll-box {
                max-height: none;
                overflow: visible;
                padding-right: 0;
            }

            h1,
            h2 {
                color: black;
            }

            a {
                color: black;
                text-decoration: underline;
            }

            .scroll-box::-webkit-scrollbar {
                display: none;
            }
        }

        /* Container queries support */
        @supports (container-type: inline-size) {
            .terms-wrapper {
                container-type: inline-size;
                container-name: terms;
            }
        }

        /* Accessibility improvements */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            body {
                background-color: #1a1a1a;
            }

            .terms-container {
                background-color: #2a2a2a;
                box-shadow: 0 0 clamp(10px, 2vw, 20px) rgba(255, 255, 255, 0.1);
            }

            h1,
            h2 {
                color: #e0e0e0;
            }

            p,
            li {
                color: #d0d0d0;
            }

            .terms-contact-footer {
                color: #b0b0b0;
                border-top: 1px solid #444;
            }

            .scroll-box::-webkit-scrollbar-track {
                background: #333;
            }

            .scroll-box::-webkit-scrollbar-thumb {
                background: #555;
            }

            .scroll-box::-webkit-scrollbar-thumb:hover {
                background: #777;
            }

            a {
                color: #4da3ff;
            }

            a:hover {
                color: #7ab8ff;
            }
        }

        /* Extra utilities for better responsiveness */
        .mt-4 {
            margin-top: clamp(1rem, 3vw, 1.5rem);
        }

        .mt-5 {
            margin-top: clamp(1.5rem, 4vw, 3rem);
        }

        .pt-5 {
            padding-top: clamp(1.5rem, 4vw, 3rem);
        }