/* =========================================
   ONYX TAXI — LEGAL PAGES
========================================= */

:root {
    --legal-bg: #05070d;
    --legal-bg-soft: #090d17;
    --legal-card: rgba(14, 19, 32, 0.85);
    --legal-text: #f5f6fb;
    --legal-muted: #a6adbd;
    --legal-blue: #657dff;
    --legal-blue-light: #8a9cff;
    --legal-green: #69e8a0;
    --legal-border: rgba(255, 255, 255, 0.11);
    --legal-container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    color: var(--legal-text);

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(68, 87, 205, 0.18),
            transparent 450px
        ),
        var(--legal-bg);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2 {
    margin-top: 0;
}

.legal-container {
    width: min(
        calc(100% - 40px),
        var(--legal-container)
    );

    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.legal-header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(5, 7, 13, 0.88);
    border-bottom: 1px solid var(--legal-border);

    backdrop-filter: blur(18px);
}

.header-content {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.legal-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.legal-logo__circle {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;
}

.legal-logo > span:last-child {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
    letter-spacing: 0.13em;
}

.legal-logo strong {
    font-size: 14px;
}

.legal-logo small {
    margin-top: 5px;

    color: var(--legal-muted);

    font-size: 8px;
    text-transform: uppercase;
}

.legal-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.legal-nav a,
.legal-phone {
    color: #e0e3ed;

    font-size: 13px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.legal-nav a:hover,
.legal-phone:hover {
    color: var(--legal-blue-light);
}


/* =========================================
   HERO
========================================= */

.legal-hero {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    border-bottom: 1px solid var(--legal-border);
}

.legal-hero .legal-container {
    position: relative;
    z-index: 2;

    padding-top: 120px;
    padding-bottom: 75px;
}

.legal-glow {
    position: absolute;
    top: -300px;
    right: -150px;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(91, 114, 255, 0.55),
            rgba(30, 45, 120, 0.12) 55%,
            transparent 72%
        );
}

.legal-label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 25px;

    color: #e3e6f1;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.legal-label span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--legal-green);

    box-shadow:
        0 0 18px rgba(105, 232, 160, 0.8);
}

.legal-hero h1 {
    max-width: 1000px;

    margin-bottom: 25px;

    font-size: clamp(55px, 9vw, 110px);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.legal-hero h1 em {
    display: block;

    color: transparent;

    font-style: normal;

    -webkit-text-stroke:
        1.5px rgba(230, 234, 255, 0.75);
}

.legal-introduction {
    max-width: 650px;

    margin-bottom: 0;

    color: var(--legal-muted);

    font-size: 20px;
}
/* =========================================
   CONTENT
========================================= */

.legal-content {
    padding: 90px 0 120px;
}

.legal-grid {
    display: grid;

    grid-template-columns:
        minmax(200px, 260px)
        minmax(0, 1fr);

    align-items: start;

    gap: clamp(45px, 7vw, 100px);
}


/* SOMMAIRE */

.legal-summary {
    position: sticky;
    top: 110px;

    display: flex;
    flex-direction: column;

    padding: 25px;

    border: 1px solid var(--legal-border);
    border-radius: 22px;

    background: rgba(10, 14, 24, 0.7);
}

.legal-number {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    color: #d8ddff;

    border: 1px solid rgba(101, 125, 255, 0.4);
    border-radius: 50%;

    background: rgba(101, 125, 255, 0.1);

    font-size: 12px;
    font-weight: 800;
}

.legal-summary h2 {
    margin-bottom: 15px;

    font-size: 17px;
}

.legal-summary a {
    padding: 9px 0;

    color: var(--legal-muted);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);

    font-size: 13px;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.legal-summary a:hover {
    padding-left: 5px;
    color: #ffffff;
}


/* CARDS */

.legal-articles {
    min-width: 0;
}

.legal-card {
    position: relative;

    margin-bottom: 22px;
    padding: clamp(28px, 5vw, 52px);

    overflow: hidden;

    border: 1px solid var(--legal-border);
    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            transparent 55%
        ),
        var(--legal-card);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35);
}

.legal-card::after {
    content: "";

    position: absolute;
    top: -120px;
    right: -120px;

    width: 200px;
    height: 200px;

    border-radius: 50%;

    background: rgba(101, 125, 255, 0.09);

    box-shadow:
        0 0 80px rgba(101, 125, 255, 0.18);

    pointer-events: none;
}

.legal-card--intro {
    border-color: rgba(101, 125, 255, 0.35);

    background:
        linear-gradient(
            135deg,
            rgba(60, 82, 210, 0.16),
            rgba(14, 19, 32, 0.88)
        );
}

.legal-card--intro p {
    font-size: 18px;
}

.card-number {
    display: block;

    margin-bottom: 20px;

    color: var(--legal-blue-light);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.legal-card h2 {
    margin-bottom: 22px;

    color: #ffffff;

    font-size: clamp(27px, 3.5vw, 39px);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.legal-card p {
    color: var(--legal-muted);
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card strong {
    color: #f5f7ff;
}

.legal-card a {
    color: #9aaaff;

    text-decoration: underline;
    text-decoration-color:
        rgba(154, 170, 255, 0.4);
    text-underline-offset: 4px;
}


/* COMPANY INFORMATION */

.company-information {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.company-information > div {
    padding: 18px;

    border:
        1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.025);
}

.company-information__large {
    grid-column: 1 / -1;
}

.company-information small {
    display: block;

    margin-bottom: 6px;

    color: #808aa1;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.company-information strong,
.company-information a {
    font-size: 15px;
    line-height: 1.5;
}


/* WARNING */

.legal-warning {
    padding: 20px;

    color: #e9d5a3;

    border: 1px dashed rgba(255, 205, 105, 0.45);
    border-radius: 15px;

    background: rgba(255, 205, 105, 0.06);
}

.legal-warning p {
    margin: 8px 0 0;
    color: #cdbf9b;
}


/* PRIVACY ADDRESS */

.privacy-address {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 23px;

    color: var(--legal-muted);
    border-left: 3px solid var(--legal-blue);
    border-radius: 0 15px 15px 0;

    background:
        rgba(101, 125, 255, 0.07);

    font-style: normal;
}


/* LIST */

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 13px;

    margin: 0 0 25px;
    padding: 0;

    list-style: none;
}

.legal-list li {
    position: relative;

    padding-left: 25px;

    color: var(--legal-muted);
}

.legal-list li::before {
    content: "";

    position: absolute;
    top: 11px;
    left: 2px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--legal-blue);

    box-shadow:
        0 0 12px rgba(101, 125, 255, 0.7);
}


/* TABLE */

.legal-table {
    margin-bottom: 22px;

    overflow-x: auto;

    border: 1px solid var(--legal-border);
    border-radius: 16px;
}

.legal-table table {
    width: 100%;
    min-width: 560px;

    border-collapse: collapse;
}

.legal-table th,
.legal-table td {
    padding: 17px 18px;

    text-align: left;
    vertical-align: top;

    border-bottom: 1px solid var(--legal-border);
}

.legal-table th {
    color: #e0e4f3;

    background:
        rgba(101, 125, 255, 0.08);

    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-table td {
    color: var(--legal-muted);
    font-size: 14px;
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

code {
    padding: 3px 7px;

    color: #dce2ff;

    border:
        1px solid rgba(101, 125, 255, 0.35);
    border-radius: 6px;

    background:
        rgba(101, 125, 255, 0.08);
}

.legal-update {
    margin: 35px 0 0;

    color: #7d879e;

    font-size: 13px;
    text-align: right;
}


/* =========================================
   FOOTER
========================================= */

.legal-footer {
    padding: 70px 0 30px;

    border-top: 1px solid var(--legal-border);

    background: #04060a;
}

.footer-content {
    display: grid;

    grid-template-columns:
        1.4fr repeat(3, 1fr);

    gap: 45px;

    padding-bottom: 55px;
}

.footer-content > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-content .legal-logo {
    margin-bottom: 20px;
}

.footer-content p {
    max-width: 270px;

    color: var(--legal-muted);

    font-size: 14px;
}

.footer-content h2 {
    margin-bottom: 18px;

    color: #edf0f8;

    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-content > div > a:not(.legal-logo) {
    margin-bottom: 10px;

    color: var(--legal-muted);

    font-size: 13px;
}

.footer-content > div > a:hover {
    color: var(--legal-blue-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-top: 25px;

    color: #71798c;

    border-top: 1px solid var(--legal-border);

    font-size: 12px;
}


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

@media (max-width: 950px) {

    .legal-nav {
        display: none;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-summary {
        position: static;
    }

    .footer-content {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .legal-container {
        width: calc(100% - 28px);
    }

    .legal-header {
        position: relative;
    }

    .header-content {
        min-height: 72px;
    }

    .legal-phone {
        font-size: 12px;
    }

    .legal-hero {
        min-height: 430px;
    }

    .legal-hero .legal-container {
        padding-top: 85px;
        padding-bottom: 55px;
    }

    .legal-hero h1 {
        font-size: clamp(48px, 16vw, 72px);
    }

    .legal-introduction {
        font-size: 17px;
    }

    .legal-content {
        padding: 55px 0 80px;
    }

    .legal-summary {
        padding: 22px;
    }

    .legal-card {
        padding: 27px 21px;
        border-radius: 23px;
    }

    .legal-card h2 {
        font-size: 27px;
    }

    .company-information {
        grid-template-columns: 1fr;
        }

    .company-information__large {
        grid-column: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}