/* Terms and Conditions Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(135deg, #FAF9F6 0%, #fff 100%);
}

body, html {
    overflow-x: hidden;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 5%;
    box-shadow: 0 2px 20px rgba(197, 156, 72, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #e0c961;
    backdrop-filter: blur(10px);
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #2C2C2C;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text span {
    color: #e0c961;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2C2C2C;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e0c961;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #e0c961;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(197, 156, 72, 0.1), rgba(212, 168, 85, 0.1));
    padding: clamp(4rem, 10vw, 6rem) 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: clamp(150px, 25vw, 280px);
    height: clamp(150px, 25vw, 280px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg opacity='0.7'%3E%3Ccircle cx='60' cy='60' r='7' fill='%23D4A855'/%3E%3Cellipse cx='60' cy='43' rx='13' ry='20' fill='%23e0c961' opacity='0.8' transform='rotate(0 60 43)'/%3E%3Cellipse cx='77' cy='51' rx='13' ry='20' fill='%23e0c961' opacity='0.8' transform='rotate(72 77 51)'/%3E%3Cellipse cx='72' cy='70' rx='13' ry='20' fill='%23e0c961' opacity='0.8' transform='rotate(144 72 70)'/%3E%3Cellipse cx='48' cy='70' rx='13' ry='20' fill='%23e0c961' opacity='0.8' transform='rotate(216 48 70)'/%3E%3Cellipse cx='43' cy='51' rx='13' ry='20' fill='%23e0c961' opacity='0.8' transform='rotate(288 43 51)'/%3E%3Cellipse cx='35' cy='80' rx='20' ry='10' fill='%23D4A855' opacity='0.6' transform='rotate(-40 35 80)'/%3E%3Cellipse cx='85' cy='75' rx='18' ry='9' fill='%23e0c961' opacity='0.6' transform='rotate(35 85 75)'/%3E%3Ccircle cx='90' cy='50' r='4' fill='%23B88A3C'/%3E%3Cellipse cx='90' cy='42' rx='7' ry='11' fill='%23D4A855' opacity='0.75' transform='rotate(0 90 42)'/%3E%3Cellipse cx='98' cy='48' rx='7' ry='11' fill='%23D4A855' opacity='0.75' transform='rotate(72 98 48)'/%3E%3Cellipse cx='95' cy='58' rx='7' ry='11' fill='%23D4A855' opacity='0.75' transform='rotate(144 95 58)'/%3E%3Cellipse cx='85' cy='58' rx='7' ry='11' fill='%23D4A855' opacity='0.75' transform='rotate(216 85 58)'/%3E%3Cellipse cx='82' cy='48' rx='7' ry='11' fill='%23D4A855' opacity='0.75' transform='rotate(288 82 48)'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: clamp(140px, 23vw, 260px);
    height: clamp(140px, 23vw, 260px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg opacity='0.7'%3E%3Ccircle cx='140' cy='140' r='6' fill='%23D4A855'/%3E%3Cellipse cx='140' cy='125' rx='12' ry='18' fill='%23e0c961' opacity='0.8' transform='rotate(0 140 125)'/%3E%3Cellipse cx='155' cy='132' rx='12' ry='18' fill='%23e0c961' opacity='0.8' transform='rotate(72 155 132)'/%3E%3Cellipse cx='151' cy='148' rx='12' ry='18' fill='%23e0c961' opacity='0.8' transform='rotate(144 151 148)'/%3E%3Cellipse cx='129' cy='148' rx='12' ry='18' fill='%23e0c961' opacity='0.8' transform='rotate(216 129 148)'/%3E%3Cellipse cx='125' cy='132' rx='12' ry='18' fill='%23e0c961' opacity='0.8' transform='rotate(288 125 132)'/%3E%3Cellipse cx='115' cy='120' rx='18' ry='9' fill='%23D4A855' opacity='0.6' transform='rotate(45 115 120)'/%3E%3Cellipse cx='160' cy='155' rx='16' ry='8' fill='%23e0c961' opacity='0.6' transform='rotate(-30 160 155)'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    color: #2C2C2C;
    font-weight: 700;
}

.page-header h1 span {
    color: #e0c961;
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #4A4A4A;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.effective-date {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 156, 72, 0.3);
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #4A4A4A;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

/* Main Content Area */
.content-wrapper {
    padding: clamp(3rem, 8vw, 5rem) 5%;
    width: 100%;
}

/* Table of Contents */
.table-of-contents {
    position: sticky;
    top: 100px;
    background: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(197, 156, 72, 0.15);
    margin-bottom: 2rem;
    border-top: 4px solid #e0c961;
}

.toc-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(197, 156, 72, 0.2);
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: #4A4A4A;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    position: relative;
    padding-left: 2rem;
}

.toc-list a::before {
    content: '→';
    position: absolute;
    left: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #e0c961;
}

.toc-list a:hover {
    color: #e0c961;
    background: rgba(197, 156, 72, 0.05);
    transform: translateX(5px);
}

.toc-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .table-of-contents {
        position: relative;
        top: 0;
    }
}

/* Sections */
.section {
    background: white;
    padding: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(197, 156, 72, 0.15);
    position: relative;
    overflow: hidden;
    border-top: 4px solid #e0c961;
    transition: all 0.3s;
}

.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197, 156, 72, 0.2);
}

.section-number {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 300;
    color: rgba(197, 156, 72, 0.1);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    line-height: 1;
    z-index: 0;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: #e0c961;
    margin: 2rem 0 1rem;
}

p {
    margin-bottom: 1.2rem;
    color: #4A4A4A;
    font-size: clamp(0.95rem, 2vw, 1rem);
    line-height: 1.7;
}

ul {
    margin: 1.5rem 0 1.5rem 1.5rem;
    list-style: none;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #4A4A4A;
    line-height: 1.7;
}

ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e0c961;
    font-weight: bold;
    font-size: 1.2rem;
}

strong {
    color: #2C2C2C;
    font-weight: 600;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(197, 156, 72, 0.05), rgba(212, 168, 85, 0.05));
    border-left: 4px solid #e0c961;
    padding: clamp(1rem, 2vw, 1.5rem);
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box p {
    margin-bottom: 0.8rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box ul {
    margin-top: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #FAF9F6 0%, #FFFFFF 100%);
    color: #4A4A4A;
    padding: clamp(3rem, 6vw, 4rem) 5%;
    border-top: 3px solid #e0c961;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2.5rem;
    width: 100%;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #2C2C2C;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.footer-logo-text span {
    color: #e0c961;
}

.footer-tagline {
    margin-top: 0.5rem;
    color: #4A4A4A;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    max-width: 280px;
}

.footer-section h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #2C2C2C;
    margin-bottom: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e0c961;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 2;
    margin-bottom: 0.3rem;
}

.footer-section li strong {
    color: #e0c961;
    font-weight: 600;
}

.footer-section a {
    color: #4A4A4A;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    position: relative;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s;
    color: #e0c961;
}

.footer-section a:hover {
    color: #e0c961;
    padding-left: 20px;
}

.footer-section a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 156, 72, 0.3);
    color: #4A4A4A;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: clamp(2rem, 4vw, 3rem);
    }

    .footer-logo-section {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section a:hover {
        padding-left: 0;
    }

    .footer-section a::before {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Selection */
::selection {
    background: #e0c961;
    color: white;
}