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

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    line-height: normal;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-width: 320px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Terms Page Container */
.terms-page {
    width: 100%;
    background-color: #131210;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ===================================
   Terms Content Section
   =================================== */

.terms-content-section {
    align-self: stretch;
    min-height: auto;
    position: relative;
    padding-bottom: 120px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Decorative Background */
.decorative-background {
    width: 1503px;
    height: 1503px;
    left: -31px;
    top: 0px;
    position: absolute;
}

.circle-large {
    width: 1503px;
    height: 1503px;
    left: 0px;
    top: 0px;
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.circle-small {
    width: 805px;
    height: 805px;
    left: 348px;
    top: 349px;
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.line {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.horizontal-1 {
    width: 1440.01px;
    height: 0px;
    left: 31px;
    top: 760px;
}

.horizontal-2 {
    width: 1440.01px;
    height: 0px;
    left: 31px;
    top: 540px;
}

.horizontal-3 {
    width: 1440.01px;
    height: 0px;
    left: 31px;
    top: 320px;
}

.vertical-1 {
    width: 1440.01px;
    height: 0px;
    left: 348px;
    top: 1443.01px;
    transform: rotate(-90deg);
    transform-origin: top left;
}

.vertical-2 {
    width: 1440.01px;
    height: 0px;
    left: 1153px;
    top: 1481.01px;
    transform: rotate(-90deg);
    transform-origin: top left;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    width: 90%;
    max-width: 1440px;
    height: 80px;
    box-sizing: border-box;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Header logo sizing controlled by koda-design-system-final.css */

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 12px 24px;
    border-radius: 100px;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-links .demo-button {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links .demo-button:hover {
    background-color: #e0e0e0;
    opacity: 1;
}

/* Desktop/Mobile Toggle Classes */
.desktop-only {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

/* Terms Header */
.terms-header {
    position: relative;
    margin-left: 42px;
    margin-top: 183px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    z-index: 10;
}

.terms-header h1 {
    text-align: center;
    color: white;
    font-size: 64px;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 70.40px;
    margin: 0;
}

.terms-header .last-updated {
    color: rgba(255, 255, 255, 0.80);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

.terms-header .intro {
    width: 509px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 24px;
    margin: 0;
}

/* Main Content Area */
.terms-main {
    position: relative;
    margin-left: 40px;
    margin-top: 60px;
    width: 1360px;
    max-width: calc(100% - 80px);
    display: flex;
    gap: 80px;
    z-index: 10;
}

/* Left Column: Content */
.terms-content {
    width: 720px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-section h2 {
    color: white;
    font-size: 30px;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 33px;
    margin: 0;
}

.content-section p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

.content-section h3 {
    color: white;
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
    margin: 8px 0 0 0;
}

.content-section strong {
    color: white;
    font-weight: 600;
}

/* Right Column: Table of Contents */
.terms-toc {
    width: 417px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.terms-toc h3 {
    color: white;
    font-size: 30px;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 33px;
    margin: 0;
}

.terms-toc a {
    text-align: left;
    color: rgba(255, 255, 255, 0.80);
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    line-height: 24px;
    transition: color 0.3s ease;
}

.terms-toc a:hover {
    color: white;
}

/* ===================================
   Footer Section
   =================================== */

.site-footer {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #121212;
    color: #E0E0E0;
    padding: 80px 80px 40px 80px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Watermark handled by .footer-watermark div only */

/* Footer Main Layout */
.footer-main {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 80px;
    max-width: 1280px;
    margin: 0 auto 40px auto;
}

/* Left Side: Logo, Newsletter, Copyright */
.footer-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Footer logo sizing controlled by koda-design-system-final.css */

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #444444;
    border-radius: 0;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

.newsletter-form input[type="email"]::placeholder {
    color: #757575;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

/* Newsletter Submit Button with Circular Arrow */
.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: #E0E0E0;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.newsletter-submit:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.newsletter-submit span {
    flex: 1;
    text-align: left;
}

/* Circular Arrow Button */
.arrow-circle {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.newsletter-submit:hover .arrow-circle {
    transform: translateX(4px);
}

.arrow-circle img {
    width: 16px;
    height: 16px;
}

/* Footer Copyright */
.footer-copyright {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #9E9E9E;
    flex-wrap: wrap;
}

.footer-copyright a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #ffffff;
}

.footer-copyright .divider {
    color: #555555;
}

/* Right Side: Navigation Links */
.footer-nav {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.nav-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-column h4 {
    color: #B0B0B0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-column a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-column a:hover {
    color: #ffffff;
}

.nav-column a img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-column a:hover img {
    opacity: 1;
    transform: translateX(2px);
}

/* Back to Top */
.back-to-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 40px 80px 0 0;
    color: #B0B0B0;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #ffffff;
}

.back-to-top img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 1023px) {
    .main-nav {
        width: 95%;
        padding: 12px 24px;
        height: auto;
        min-height: 60px;
    }

    /* Logo tablet sizing controlled by koda-design-system-final.css */

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
        padding: 10px 16px;
    }

    .demo-button {
        width: auto;
        min-width: 120px;
        height: 44px;
        font-size: 14px;
    }

    .terms-content-section {
        padding-bottom: 80px;
    }

    .terms-header {
        margin-left: 24px;
        margin-right: 24px;
        margin-top: 120px;
    }

    .terms-header h1 {
        font-size: 48px !important;
        line-height: 52px !important;
    }

    .terms-main {
        margin-left: 24px;
        margin-right: 24px;
        margin-top: 40px;
        width: calc(100% - 48px);
        flex-direction: column;
        gap: 40px;
    }

    .terms-content {
        width: 100%;
    }

    .terms-toc {
        width: 100%;
        position: relative;
        top: 0;
        order: -1;
    }

    .decorative-background {
        width: 1200px !important;
        left: -400px !important;
    }
}

/* ===== MOBILE (320px - 767px) ===== */
@media (max-width: 767px) {
    .main-nav {
        width: calc(100% - 20px);
        padding: 12px 16px;
        border-radius: 50px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .logo {
        order: 1;
    }

    /* Logo mobile sizing controlled by mobile-header-fix.css */

    .nav-links {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 12px;
        padding: 8px 12px;
    }

    .demo-button {
        width: auto;
        min-width: 100px;
        height: 40px;
        padding: 0 16px !important;
        font-size: 12px;
    }

    .terms-content-section {
        padding-bottom: 60px;
    }

    .terms-header {
        margin-left: 16px;
        margin-right: 16px;
        margin-top: 100px;
    }

    .terms-header h1 {
        font-size: 32px !important;
        line-height: 36px !important;
    }

    .terms-header .intro {
        width: 100% !important;
        font-size: 14px !important;
    }

    .terms-main {
        margin-left: 16px;
        margin-right: 16px;
        margin-top: 32px;
        width: calc(100% - 32px);
    }

    .terms-content {
        width: 100%;
    }

    .terms-toc {
        width: 100%;
        padding: 20px;
    }

    .content-section h2 {
        font-size: 22px !important;
        line-height: 26px !important;
    }

    .content-section h3 {
        font-size: 18px !important;
        line-height: 23px !important;
    }

    .content-section p {
        font-size: 14px !important;
        line-height: 21px !important;
    }

    .circle-large,
    .circle-small {
        display: none !important;
    }

    .decorative-background {
        width: 800px !important;
        left: -200px !important;
        height: 800px !important;
    }

    .site-footer {
        padding: 60px 20px 30px 20px;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== SMALL MOBILE (320px - 480px) ===== */
@media (max-width: 480px) {
    .main-nav {
        top: 10px;
        width: calc(100% - 16px);
    }

    .terms-header h1 {
        font-size: 28px !important;
        line-height: 32px !important;
    }

    .content-section h2 {
        font-size: 20px !important;
        line-height: 24px !important;
    }

    .content-section h3 {
        font-size: 16px !important;
        line-height: 21px !important;
    }

    .content-section p {
        font-size: 13px !important;
        line-height: 20px !important;
    }
}

/* ===== FULL-WIDTH SECTION WRAPPERS ===== */
/* These wrappers ensure backgrounds extend full viewport width on screens >1440px */

.terms-content-section-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #FFFFFF;
}

/* ===== COOKIE TABLE ===== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.85);
    min-width: 800px;
}

.cookie-table thead th {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.cookie-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.cookie-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.cookie-table tbody td strong {
    color: white;
    font-weight: 600;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.content-section ul {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 24px;
    padding-left: 24px;
    margin-top: 8px;
}

.content-section ul li {
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .cookie-table {
        font-size: 12px;
        line-height: 16px;
    }

    .cookie-table thead th {
        font-size: 11px;
        padding: 10px 10px;
    }

    .cookie-table tbody td {
        padding: 10px 10px;
    }

    .content-section ul {
        font-size: 14px !important;
        line-height: 21px !important;
    }
}

@media (max-width: 480px) {
    .content-section ul {
        font-size: 13px !important;
        line-height: 20px !important;
    }
}
