/* =========================================================
   YALPDEV - CGU
   ========================================================= */

:root {
    --orange: #ff6b00;
    --orange-light: #fff2e8;
    --orange-soft: #fff8f3;

    --blue: #07101f;
    --blue-2: #0d1728;

    --text: #111827;
    --text-light: #596579;
    --text-muted: #7b8799;

    --white: #ffffff;
    --background: #f7f9fc;
    --border: #e6eaf0;

    --shadow: 0 8px 30px rgba(15, 23, 42, 0.05);

    --container: 1200px;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    font-size: 16px;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

.page-container {
    width: min(var(--container), calc(100% - 48px));
    margin: auto;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    height: 72px;
    background: #050c18;
    color: white;
    border-bottom: 3px solid var(--orange);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    height: 100%;
    width: min(1400px, calc(100% - 40px));
    margin: auto;

    display: flex;
    align-items: center;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 27px;
    font-weight: 800;

    white-space: nowrap;
}

.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.brand-orange {
    color: var(--orange);
}

.main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: #dce2eb;

    padding: 22px 12px 18px;

    font-size: 17px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 7px;

    border-bottom: 3px solid transparent;

    transition: 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.main-nav i {
    font-size: 14px;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.search-box {
    width: 190px;
    height: 38px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    border-radius: 22px;

    background: #121d2d;
    border: 1px solid #263449;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 12px;
}

.search-box input::placeholder {
    color: #8d99a9;
}

.search-box i {
    color: #b9c2cf;
    font-size: 13px;
}

.header-btn {
    height: 38px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    background: var(--orange);
    color: white;

    border-radius: 20px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s;
}

.header-btn:hover {
    background: #e95e00;
    color: white;
    transform: translateY(-1px);
}

.header-btn.download {
    background: #ff7514;
}

.icon-btn {
    width: 35px;
    height: 35px;

    border: 0;
    background: transparent;

    color: white;

    cursor: pointer;
}

.desktop-login {
    height: 44px;

    border: 0;
    border-radius: 9px;

    padding: 0 17px;

    background: var(--orange);
    color: white;

    font-weight: 700;

    cursor: pointer;
}

.profile-btn {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    color: #111827;

    border-radius: 50%;
}

.mobile-menu-btn,
.mobile-login {
    display: none;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb-section {
    background: white;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    min-height: 60px;

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: #596579;
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb i {
    font-size: 14px;
    color: #aeb7c5;
}

/* =========================================================
   CGU
========================================================= */

.cgu-page {
    padding: 45px 0 65px;
}

.cgu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.cgu-content {
    min-width: 0;
}

.cgu-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 25px;
}

.heading-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--orange);

    border: 2px solid var(--orange);
    border-radius: 10px;

    font-size: 30px;
    background: white;
}

.eyebrow {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
    font-weight: 800;

    color: var(--orange);

    letter-spacing: 0.08em;
}

.cgu-heading h1 {
    font-size: clamp(35px, 4vw, 45px);
    line-height: 1.15;

    letter-spacing: -1.4px;

    margin-bottom: 8px;

    font-weight: 800;
}

.updated {
    color: var(--text-light);
    font-size: 16px;
}

.updated strong {
    color: var(--text);
}

.intro-text {
    color: #4d5b70;

    font-size: 18px;
    line-height: 1.8;

    margin-bottom: 25px;

    max-width: 850px;
}

/* =========================================================
   SECTIONS
========================================================= */

.cgu-sections {
    background: white;
    border-radius: 12px;
    padding: 0 22px;

    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.cgu-section {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 48px;

    gap: 14px;

    padding: 25px 0;

    border-bottom: 1px solid var(--border);

    scroll-margin-top: 90px;
}

.cgu-section:last-child {
    border-bottom: 0;
}

.section-number {
    width: 22px;
    height: 22px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--orange);
    color: white;

    font-size: 14px;
    font-weight: 800;

    margin-top: 3px;
}

.section-body h2 {
    font-size: 19px;
    line-height: 1.4;

    margin-bottom: 7px;

    font-weight: 750;
}

.section-body p {
    color: #596579;

    font-size: 16px;
    line-height: 1.75;

    margin: 0;
}

.section-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--orange);

    background: var(--orange-soft);

    border-radius: 10px;

    font-size: 20px;

    align-self: center;
}

/* =========================================================
   ACCEPTANCE
========================================================= */

.acceptance-box {
    margin-top: 20px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 17px 20px;

    border-radius: 9px;

    background: #fff7ef;
    border: 1px solid #ffe2ce;
}

.acceptance-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--orange);
    color: white;

    border-radius: 50%;
}

.acceptance-box p {
    margin: 0;

    color: #596579;
    font-size: 17px;
}

/* =========================================================
   SIDEBAR
========================================================= */

.cgu-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;

    position: sticky;
    top: 95px;
}

.sidebar-card {
    background: white;

    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 22px;

    box-shadow: var(--shadow);
}

.sidebar-card h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.toc {
    display: flex;
    flex-direction: column;
}

.toc a {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 9px 0;

    font-size: 16px;
    color: #344054;

    transition: 0.2s;
}

.toc a:hover,
.toc a.active {
    color: var(--orange);
}

.toc-number {
    width: 20px;
    color: var(--orange);

    font-size: 13px;
    font-weight: 700;
}

.trust-card,
.contact-card {
    padding: 24px;
}

.trust-icon,
.contact-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf5ff;
    color: #1769ff;

    margin-bottom: 14px;

    font-size: 20px;
}

.sidebar-card h3 {
    font-size: 20px;
    line-height: 1.35;

    margin-bottom: 9px;
}

.sidebar-card p {
    color: #667085;
    font-size: 16px;
    line-height: 1.7;

    margin-bottom: 13px;
}

.trust-card a {
    color: var(--orange);
    font-size: 16px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.outline-btn {
    display: inline-flex;

    padding: 9px 17px;

    border: 1px solid var(--orange);
    border-radius: 6px;

    color: var(--orange);

    font-size: 16px;
    font-weight: 600;

    transition: 0.2s;
}

.outline-btn:hover {
    background: var(--orange);
    color: white;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #050d19;
    color: white;

    padding: 48px 0 0;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1.25fr
        1fr
        1fr;

    gap: 30px;
}

.footer-brand {
    padding-right: 25px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 26px;
    font-weight: 800;

    margin-bottom: 12px;
}

.footer-logo img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.footer-logo span span {
    color: var(--orange);
}

.footer-brand p {
    color: #9aa5b5;

    font-size: 16px;
    line-height: 1.7;

    margin-bottom: 17px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #182334;
    color: #dce2eb;

    font-size: 16px;

    transition: 0.2s;
}

.social-links a:hover {
    background: var(--orange);
    color: white;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-size: 17px;
    margin-bottom: 13px;
}

.footer-column a {
    color: #9aa5b5;

    font-size: 14px;

    margin-bottom: 8px;

    transition: 0.2s;
}

.footer-column a:hover {
    color: var(--orange);
}

.stat-item {
    display: flex;
    gap: 12px;
    align-items: center;

    margin-bottom: 14px;
}

.stat-item > i {
    width: 28px;

    color: var(--orange);

    font-size: 21px;
}

.stat-item strong {
    display: block;

    font-size: 17px;
}

.stat-item span {
    display: block;

    color: #8d98a9;

    font-size: 14px;
}

.footer-bottom {
    margin-top: 35px;
    padding: 20px 0;

    border-top: 1px solid #1a2637;

    display: flex;
    justify-content: center;
    gap: 20px;

    color: #8d98a9;

    font-size: 15px;
}

.footer-bottom i {
    color: var(--orange);
}

/* =========================================================
   LOGIN MODAL
========================================================= */

.login-modal {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;
}

.login-modal.show {
    display: flex;
}

.login-overlay {
    position: absolute;
    inset: 0;

    background: rgba(2, 8, 18, 0.72);
    backdrop-filter: blur(5px);
}

.login-dialog {
    position: relative;
    z-index: 2;

    width: min(430px, calc(100% - 30px));

    background: white;

    border-radius: 16px;

    padding: 32px;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);

    text-align: center;

    animation: modalIn 0.25s ease;
}

@keyframes modalIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.close-modal {
    position: absolute;

    top: 13px;
    right: 13px;

    width: 35px;
    height: 35px;

    border: 0;
    border-radius: 50%;

    background: #f3f4f6;

    cursor: pointer;
}

.login-modal-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--orange-light);
    color: var(--orange);

    font-size: 30px;
}

.login-dialog h2 {
    font-size: 26px;
    margin-bottom: 7px;
}

.login-dialog > p {
    color: #667085;
    font-size: 16px;
    margin-bottom: 22px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-login {
    height: 47px;

    border: 1px solid #dfe4ea;
    border-radius: 8px;

    background: white;

    font-weight: 600;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition: 0.2s;
}

.social-login:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.social-login.google i {
    color: #db4437;
}

.social-login.facebook i {
    color: #1877f2;
}

.social-login.apple i {
    color: #111827;
}

.login-note {
    margin-top: 18px;

    color: #8a94a6;

    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1150px) {

    .search-box {
        width: 150px;
    }

    .main-nav a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
    }

    .header-btn {
        padding: 0 10px;
    }

    .cgu-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 900px) {

    .site-header {
        height: 66px;
    }

    .header-container {
        width: calc(100% - 24px);
    }

    .brand {
        font-size: 23px;
    }

    .desktop-actions {
        display: none;
    }

    .mobile-menu-btn {
        margin-left: auto;

        width: 43px;
        height: 43px;

        display: flex;
        align-items: center;
        justify-content: center;

        border: 1px solid #304057;
        border-radius: 8px;

        background: #101a2b;
        color: white;

        font-size: 19px;

        cursor: pointer;
    }

    .main-nav {
        position: fixed;

        top: 66px;
        right: 0;

        width: min(360px, 82vw);
        height: calc(100vh - 66px);

        margin: 0;

        padding: 18px 14px 25px;

        background: #07101f;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 3px;

        transform: translateX(100%);
        transition: transform 0.3s ease;

        overflow-y: auto;

        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.2);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 15px 15px;

        border: 0;

        border-radius: 7px;

        font-size: 15px;
    }

    .main-nav a.active,
    .main-nav a:hover {
        background: rgba(255, 107, 0, 0.13);
        color: var(--orange);
        border: 0;
    }

    .mobile-login {
        display: block;

        margin-top: auto;
        padding-top: 15px;

        border-top: 1px solid #243247;
    }

    .login-btn {
        width: 100%;
        height: 48px;

        display: flex !important;
        align-items: center;
        justify-content: center;

        gap: 8px;

        background: var(--orange) !important;
        color: white !important;

        border-radius: 9px !important;

        font-size: 15px !important;
        font-weight: 700;
    }

    .cgu-page {
        padding: 30px 0 45px;
    }

    .cgu-layout {
        display: block;
    }

    .cgu-sidebar {
        position: static;

        margin-top: 25px;
    }

    .toc-card {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .page-container {
        width: calc(100% - 28px);
    }

    .breadcrumb {
        min-height: 52px;
        font-size: 13px;
    }

    .cgu-heading {
        gap: 13px;
    }

    .heading-icon {
        width: 47px;
        height: 47px;

        font-size: 20px;
    }

    .eyebrow {
        font-size: 10px;
    }

    .cgu-heading h1 {
        font-size: 29px;
        letter-spacing: -0.8px;
    }

    .updated {
        font-size: 13px;
    }

    .intro-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .cgu-sections {
        padding: 0 15px;
    }

    .cgu-section {
        grid-template-columns: 25px minmax(0, 1fr);

        padding: 21px 0;
    }

    .section-icon {
        display: none;
    }

    .section-body h2 {
        font-size: 16px;
    }

    .section-body p {
        font-size: 14px;
        line-height: 1.7;
    }

    .acceptance-box {
        align-items: flex-start;

        padding: 15px;
    }

    .acceptance-box p {
        font-size: 13px;
    }

    .sidebar-card {
        padding: 18px;
    }

    .toc a {
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
        padding-right: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 7px;
    }

}

/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 380px) {

    .brand {
        font-size: 20px;
    }

    .brand-logo {
        width: 25px;
        height: 25px;
    }

    .main-nav {
        width: 85vw;
    }

    .cgu-heading h1 {
        font-size: 26px;
    }

}