/* =========================
   THEME TOKENS
   ========================= */
   :root {
    --primary-gradient: linear-gradient(135deg, #34495e 0%, #34495e 100%);
    --secondary-gradient: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --danger-gradient: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    --warning-gradient: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    --dark-color: #000000;
    --light-color: #e4e4e4;
    --border-color: #00C2D8;
    --text-color: #000000;
    --text-light: #004116;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* New theme colors */
    --blue-900: #0F2345;
    --slate-500: #647286;
    --cyan-500: #00C2D8;
    --offwhite: #F8F9FB;
    --card-bg: #ffffff;
    --border-soft: rgba(15, 35, 69, 0.10);
}

/* =========================
   Reset and base styles
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #e2e2e0 0%, #e2e2e0 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

/* Technical grid overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(15, 35, 69, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 35, 69, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.15;
    z-index: -1;
}

/* =========================
   Container + global animation
========================= */
.container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Header
========================= */
.app-header {
    text-align: center;
    color: #f56565;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.app-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.app-header .tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

/* =========================
   Navigation Strip Styles
========================= */
.nav-strip {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 100%;
    height: 50px;
    margin: 20px 0 40px 0;
    overflow: hidden;
}

.nav-strip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 25px;
}

.nav-strip-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.nav-title i {
    color: var(--cyan-500);
    font-size: 18px;
}

.nav-strip-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strip-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.strip-item { position: relative; }

.strip-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.strip-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.strip-link.active {
    background: rgba(52, 152, 219, 0.25);
    color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.strip-link i { font-size: 14px; }

/* =========================
   Terms Content
========================= */
.terms-content {
    margin-top: 30px;
}

/* Effective Date */
.effective-date {
    background: linear-gradient(135deg, rgba(0, 194, 216, 0.1) 0%, rgba(15, 35, 69, 0.1) 100%);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.effective-date i {
    font-size: 24px;
    color: var(--cyan-500);
    background: white;
    padding: 12px;
    border-radius: 10px;
}

.effective-date strong {
    color: var(--blue-900);
    font-size: 16px;
}

.effective-date small {
    color: var(--slate-500);
    font-size: 14px;
}

/* Company Card */
.company-card {
    background: var(--offwhite);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(15, 35, 69, 0.08);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 194, 216, 0.3);
}

.company-header i {
    color: var(--cyan-500);
    font-size: 22px;
}

.company-header h3 {
    color: var(--blue-900);
    font-size: 20px;
    font-weight: 700;
}

.company-details p {
    margin-bottom: 10px;
    color: var(--slate-500);
    font-size: 15px;
}

.company-details strong {
    color: var(--blue-900);
    min-width: 100px;
    display: inline-block;
}

.company-details a {
    color: var(--cyan-500);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.company-details a:hover {
    color: #007a8a;
    text-decoration: underline;
}

/* Terms Sections */
.terms-article {
    counter-reset: section;
}

.term-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.term-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.term-section h2 {
    color: var(--blue-900);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-number {
    background: var(--cyan-500);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.term-section p {
    color: var(--slate-500);
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.7;
}

/* Lists */
.term-list {
    list-style: none;
    margin: 15px 0 20px 0;
    padding-left: 0;
}

.term-list li {
    color: var(--slate-500);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.term-list li:before {
    content: "•";
    color: var(--cyan-500);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.prohibited-list li {
    padding-left: 35px;
}

.prohibited-list i {
    color: #f56565;
    margin-right: 8px;
    position: absolute;
    left: 0;
    top: 3px;
}

/* Note Boxes */
.term-note,
.term-warning,
.term-important,
.term-highlight,
.term-legal {
    background: var(--offwhite);
    border-left: 4px solid var(--cyan-500);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
}

.term-note {
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.term-warning {
    border-left-color: #ed8936;
    background: rgba(237, 137, 54, 0.05);
}

.term-important {
    border-left-color: #f56565;
    background: rgba(245, 101, 101, 0.05);
}

.term-highlight {
    border-left-color: #48bb78;
    background: rgba(72, 187, 120, 0.05);
}

.term-legal {
    border-left-color: var(--blue-900);
    background: rgba(15, 35, 69, 0.03);
    font-size: 14px;
    font-style: italic;
}

.term-note i,
.term-warning i,
.term-important i,
.term-highlight i {
    font-size: 20px;
    color: inherit;
    flex-shrink: 0;
    margin-top: 2px;
}

.term-note i { color: #3498db; }
.term-warning i { color: #ed8936; }
.term-important i { color: #f56565; }
.term-highlight i { color: #48bb78; }

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, rgba(0, 194, 216, 0.05) 0%, rgba(15, 35, 69, 0.05) 100%);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-header i {
    color: var(--cyan-500);
    font-size: 24px;
}

.contact-header h3 {
    color: var(--blue-900);
    font-size: 18px;
    font-weight: 700;
}

.contact-details p {
    margin-bottom: 10px;
    color: var(--slate-500);
}

.contact-details strong {
    color: var(--blue-900);
    min-width: 70px;
    display: inline-block;
}

.contact-details a {
    color: var(--cyan-500);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Quick Navigation */
.quick-nav {
    background: var(--offwhite);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(15, 35, 69, 0.08);
}

.quick-nav h3 {
    color: var(--blue-900);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-nav h3 i {
    color: var(--cyan-500);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-links a {
    background: white;
    color: var(--slate-500);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: var(--cyan-500);
    color: white;
    border-color: var(--cyan-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 194, 216, 0.3);
}

/* Agreement Section */
.agreement-section {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(0, 194, 216, 0.1) 100%);
    border: 2px solid rgba(72, 187, 120, 0.3);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

.agreement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.agreement-content i {
    font-size: 32px;
    color: #48bb78;
    background: white;
    padding: 15px;
    border-radius: 50%;
}

.agreement-content h3 {
    color: var(--blue-900);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.agreement-content p {
    color: var(--slate-500);
    max-width: 600px;
    font-size: 15px;
}

/* =========================
   Footer
========================= */
.app-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 8px;
    background: var(--offwhite);
    border: 1px solid var(--border-soft);
}

.footer-links a:hover {
    color: var(--cyan-500);
    background: white;
    border-color: var(--cyan-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 194, 216, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--cyan-500);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 194, 216, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background: #00a8bc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 194, 216, 0.5);
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 25px; }
    
    .app-header h1 { font-size: 2.2rem; }
    
    .nav-strip {
        height: auto;
        padding: 15px 0;
        margin: 15px 0 25px 0;
    }
    
    .nav-strip-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .nav-strip-left,
    .nav-strip-right {
        width: 100%;
        justify-content: center;
    }
    
    .strip-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-title {
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .term-section h2 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .term-note,
    .term-warning,
    .term-important,
    .term-highlight,
    .term-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container { padding: 20px; }
    
    .app-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .effective-date {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .agreement-content {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   Logo + accessibility helpers
========================= */
.tagline {
    margin-top: 10px;
    text-align: center;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.strip-link:focus-visible {
    outline: 3px solid var(--cyan-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .nav-strip,
    .footer-links,
    .back-to-top,
    .quick-nav,
    .agreement-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        padding: 0 !important;
    }
    
    .container {
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* Quick Navigation Menu */
.quick-nav-menu {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--blue-900);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(15, 35, 69, 0.3);
    z-index: 999;
    overflow: hidden;
    width: 250px;
    transition: all 0.3s;
}

.quick-nav-menu.expanded {
    height: auto;
}

.nav-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.nav-header i {
    font-size: 18px;
    color: var(--cyan-500);
}

.nav-header span {
    font-weight: 600;
    font-size: 14px;
}

.nav-links {
    padding: 15px;
    display: none;
}

.quick-nav-menu.expanded .nav-links {
    display: block;
}

.nav-links a {
    color: rgb(12, 14, 32);
    text-decoration: none;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-links a i {
    color: var(--cyan-500);
    font-size: 14px;
    width: 20px;
}