/* Modern Terms & Conditions Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --primary-orange: #ea580c;
    --dark-gray: #1f2937;
    --medium-gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --danger: #ef4444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    color: var(--white);
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: 100px;
}

.toc-sticky {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.toc-sticky h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toc-list a:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    color: var(--white);
    transform: translateX(5px);
}

.toc-list a i {
    font-size: 1rem;
    width: 20px;
}

/* Content Wrapper */
.content-wrapper {
    min-width: 0;
}

/* Sections */
.section {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    scroll-margin-top: 100px;
}

.section h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-orange);
}

.section h2 i {
    font-size: 1.75rem;
}

.section h3 {
    color: var(--primary-orange);
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.section p {
    margin-bottom: 1.25rem;
    color: var(--dark-gray);
    line-height: 1.8;
}

.section ul, .section ol {
    margin: 1.5rem 0 1.5rem 2rem;
    line-height: 1.9;
}

.section li {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section li strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Definition List */
.definition-list li {
    padding-left: 1rem;
    border-left: 3px solid var(--primary-orange);
    margin-bottom: 1.5rem;
}

/* Prohibited List */
.prohibited-list {
    list-style: none;
    margin-left: 0;
}

.prohibited-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fee2e2;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.prohibited-list li i {
    color: var(--danger);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/* Highlight Boxes */
.highlight-box {
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 4px solid;
}

.highlight-box i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.highlight-box.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: var(--info);
}

.highlight-box.info i {
    color: var(--info);
}

.highlight-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: var(--warning);
}

.highlight-box.warning i {
    color: var(--warning);
}

.highlight-box.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: var(--success);
}

.highlight-box.success i {
    color: var(--success);
}

.highlight-box strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Account Types Grid */
.account-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.account-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
    border-color: var(--primary-blue);
}

.account-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.account-card h4 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.account-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Acknowledgment Section */
.acknowledgment {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    color: var(--white);
    text-align: center;
}

.acknowledgment-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.acknowledgment h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.acknowledgment p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    background: var(--white);
    color: var(--primary-blue);
}

.action-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc-sidebar {
        position: static;
        order: -1;
    }

    .toc-sticky {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .brand-text {
        font-size: 1rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .account-types,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 1.5rem 1rem;
    }

    .section h2 {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .toc-list a {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


/* Designer Credit Styling */
.designer-credit {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.designer-credit a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.designer-credit a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.designer-credit a i {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
