/* =========================================================
   DP MARKETING
   Legal pages stylesheet
   ========================================================= */

.page-header {
    background: rgba(6, 27, 39, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.main-navigation a[aria-current="page"] {
    color: var(--color-white);
}

.main-navigation a[aria-current="page"]::after {
    transform: scaleX(1);
}

.legal-page-hero {
    position: relative;
    padding: 190px 0 105px;
    overflow: hidden;
    color: var(--color-white);
    background:
        radial-gradient(circle at 82% 30%, rgba(68, 126, 143, 0.28), transparent 32%),
        linear-gradient(135deg, #04131d 0%, var(--color-navy) 52%, #0a3241 100%);
}

.legal-page-hero::before,
.legal-page-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(150, 191, 202, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.legal-page-hero::before {
    top: -390px;
    right: -210px;
    width: 820px;
    height: 820px;
}

.legal-page-hero::after {
    bottom: -420px;
    left: 30%;
    width: 650px;
    height: 650px;
}

.legal-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 930px;
}

.legal-page-hero h1 {
    margin-bottom: 28px;
    font-size: clamp(3.4rem, 7vw, 6.6rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.legal-page-hero h1 span {
    display: block;
    color: #9ebbc4;
}

.legal-hero-description {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 1.07rem;
    line-height: 1.82;
}

.legal-section {
    padding: 105px 0 120px;
    background: #f5f8f8;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(230px, 0.32fr) minmax(0, 0.88fr);
    align-items: start;
    gap: 85px;
}

.legal-sidebar {
    position: sticky;
    top: 110px;
    padding: 28px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: 0 20px 55px rgba(6, 27, 39, 0.06);
}

.legal-sidebar-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-steel);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-sidebar h2 {
    margin-bottom: 5px;
    font-size: 1.24rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.legal-updated {
    margin-bottom: 26px;
    color: var(--color-text-soft);
    font-size: 0.76rem;
}

.legal-toc {
    display: grid;
    gap: 4px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}

.legal-toc a {
    padding: 7px 0;
    color: var(--color-text-soft);
    font-size: 0.79rem;
    line-height: 1.4;
    transition: color var(--transition), transform var(--transition);
}

.legal-toc a:hover {
    color: var(--color-petrol);
    transform: translateX(4px);
}

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

.legal-intro-box {
    margin-bottom: 28px;
    padding: 30px;
    color: var(--color-white);
    background:
        radial-gradient(circle at 90% 10%, rgba(73, 132, 149, 0.32), transparent 38%),
        var(--color-navy);
    border-radius: var(--radius-medium);
}

.legal-intro-box p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.69);
    line-height: 1.82;
}

.legal-document-section {
    margin-bottom: 18px;
    padding: 40px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.legal-section-number {
    display: block;
    margin-bottom: 28px;
    color: var(--color-steel);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.legal-document-section h2 {
    margin-bottom: 21px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.legal-document-section h3 {
    margin: 28px 0 12px;
    font-size: 1.08rem;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.legal-document-section p,
.legal-document-section li {
    color: var(--color-text-soft);
    line-height: 1.84;
}

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

.legal-document-section ul,
.legal-document-section ol {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding-left: 22px;
}

.legal-document-section ul {
    list-style: disc;
}

.legal-document-section ol {
    list-style: decimal;
}

.legal-document-section a {
    color: var(--color-petrol);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-document-section a:hover {
    color: var(--color-navy);
}

.legal-highlight {
    margin-top: 24px;
    padding: 20px 22px;
    color: var(--color-text);
    background: #edf3f4;
    border-left: 3px solid var(--color-blue);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.legal-highlight p {
    color: inherit;
}

.legal-data-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.legal-data-table th,
.legal-data-table td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

.legal-data-table th {
    width: 29%;
    color: var(--color-text);
    background: #edf3f4;
    font-size: 0.78rem;
    line-height: 1.45;
}

.legal-data-table td {
    color: var(--color-text-soft);
    background: var(--color-white);
    font-size: 0.88rem;
    line-height: 1.65;
}

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

.legal-contact-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    margin-top: 35px;
    padding: 42px;
    color: var(--color-white);
    background:
        radial-gradient(circle at 90% 12%, rgba(74, 134, 151, 0.34), transparent 36%),
        var(--color-navy);
    border-radius: var(--radius-large);
}

.legal-contact-box h2 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.legal-contact-box p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.62);
}

.legal-contact-box .button {
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 24px;
    }
}

@media (max-width: 640px) {
    .legal-page-hero {
        padding: 140px 0 76px;
    }

    .legal-page-hero h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .legal-hero-description {
        font-size: 0.97rem;
    }

    .legal-section {
        padding: 70px 0 78px;
    }

    .legal-sidebar,
    .legal-document-section,
    .legal-intro-box {
        padding: 25px;
        border-radius: 20px;
    }

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

    .legal-document-section h2 {
        font-size: 1.75rem;
    }

    .legal-data-table,
    .legal-data-table tbody,
    .legal-data-table tr,
    .legal-data-table th,
    .legal-data-table td {
        display: block;
        width: 100%;
    }

    .legal-data-table tr {
        border-bottom: 1px solid var(--color-border);
    }

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

    .legal-data-table th,
    .legal-data-table td {
        border-bottom: 0;
    }

    .legal-data-table th {
        padding-bottom: 7px;
    }

    .legal-data-table td {
        padding-top: 7px;
    }

    .legal-contact-box {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 25px;
        border-radius: 24px;
    }

    .legal-contact-box .button {
        width: 100%;
    }
}
