.tgp-legal-page {
    background: #fff;
}

.tgp-legal-page .container {
    max-width: 1240px;
}

.tgp-legal-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: 42px;
    padding: 36px 40px;
    border: 1px solid #e4e7eb;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #fff8f6 100%);
    box-shadow: 0 16px 44px rgba(31, 38, 48, 0.07);
}

.tgp-legal-intro::after {
    content: "";
    position: absolute;
    top: -76px;
    right: -65px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(216, 58, 52, 0.07);
    pointer-events: none;
}

.tgp-legal-kicker {
    margin: 0 0 10px;
    color: #d83a34;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tgp-legal-intro h2 {
    max-width: 860px;
    margin: 0 0 14px;
    color: #202630;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.18;
}

.tgp-legal-intro > p:not(.tgp-legal-kicker):not(.tgp-legal-date) {
    max-width: 900px;
    margin: 0;
    color: #525d69;
    font-size: 17px;
    line-height: 1.75;
}

.tgp-legal-date {
    display: inline-flex;
    align-items: center;
    margin: 22px 0 0;
    padding: 8px 13px;
    border: 1px solid #ecd7d4;
    border-radius: 999px;
    background: #fff;
    color: #3d4650;
    font-size: 13px;
    font-weight: 700;
}

.tgp-legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 285px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.tgp-legal-nav {
    position: sticky;
    top: 130px;
    padding: 25px;
    border: 1px solid #e4e7eb;
    border-radius: 16px;
    background: #f8f9fa;
}

.tgp-legal-nav h2 {
    margin: 0 0 15px;
    color: #202630;
    font-size: 18px;
    line-height: 1.3;
}

.tgp-legal-nav ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: legal-nav;
}

.tgp-legal-nav li {
    counter-increment: legal-nav;
    margin: 0;
    border-top: 1px solid #e2e5e8;
}

.tgp-legal-nav li:first-child {
    border-top: 0;
}

.tgp-legal-nav a {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 7px;
    padding: 10px 0;
    color: #49535e;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
}

.tgp-legal-nav a::before {
    content: counter(legal-nav, decimal-leading-zero);
    color: #d83a34;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.tgp-legal-nav a:hover,
.tgp-legal-nav a:focus {
    color: #c9332e;
}

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

.tgp-legal-summary {
    margin-bottom: 36px;
    padding: 28px 30px;
    border-left: 4px solid #347dcc;
    border-radius: 0 14px 14px 0;
    background: #f2f7fd;
}

.tgp-legal-summary h2 {
    margin: 0 0 13px;
    color: #202630;
    font-size: 24px;
}

.tgp-legal-summary ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tgp-legal-summary li {
    position: relative;
    margin: 0;
    padding-left: 24px;
    color: #45515d;
    font-size: 15px;
    line-height: 1.6;
}

.tgp-legal-summary li::before {
    content: "\2713";
    position: absolute;
    top: 0;
    left: 0;
    color: #d83a34;
    font-weight: 900;
}

.tgp-legal-section {
    scroll-margin-top: 145px;
    padding: 3px 0 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid #e8eaed;
}

.tgp-legal-section:last-of-type {
    margin-bottom: 0;
    border-bottom: 0;
}

.tgp-legal-section h2 {
    margin: 0 0 16px;
    color: #202630;
    font-size: clamp(24px, 2.2vw, 31px);
    line-height: 1.3;
}

.tgp-legal-section h3 {
    margin: 24px 0 10px;
    color: #26313c;
    font-size: 19px;
    line-height: 1.4;
}

.tgp-legal-section p,
.tgp-legal-section li {
    color: #56616d;
    font-size: 16px;
    line-height: 1.8;
}

.tgp-legal-section p {
    margin: 0 0 15px;
}

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

.tgp-legal-section ul,
.tgp-legal-section ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.tgp-legal-section li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.tgp-legal-section strong {
    color: #303944;
}

.tgp-legal-section a,
.tgp-legal-contact a {
    color: #206fbe;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tgp-legal-section a:hover,
.tgp-legal-section a:focus,
.tgp-legal-contact a:hover,
.tgp-legal-contact a:focus {
    color: #c9332e;
}

.tgp-legal-note {
    margin: 22px 0;
    padding: 20px 22px;
    border: 1px solid #f0d3d0;
    border-radius: 12px;
    background: #fff8f7;
}

.tgp-legal-note p {
    margin: 0;
    color: #414c57;
}

.tgp-legal-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 10px;
    padding: 30px;
    border-radius: 16px;
    background: #202630;
}

.tgp-legal-contact h2,
.tgp-legal-contact p {
    color: #fff;
}

.tgp-legal-contact h2 {
    margin: 0 0 8px;
    font-size: 25px;
}

.tgp-legal-contact p {
    margin: 0;
    line-height: 1.65;
    opacity: 0.88;
}

.tgp-legal-contact a {
    color: #fff;
}

.tgp-legal-contact .tmp-btn {
    white-space: nowrap;
}

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

    .tgp-legal-nav {
        position: static;
    }

    .tgp-legal-nav ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 22px;
    }
}

@media (max-width: 767px) {
    body .tgp-page-offset {
        padding-top: 180px;
    }

    .tgp-legal-intro {
        margin-bottom: 30px;
        padding: 27px 24px;
        border-radius: 15px;
    }

    .tgp-legal-summary {
        padding: 24px 22px;
    }

    .tgp-legal-summary ul,
    .tgp-legal-nav ol {
        grid-template-columns: 1fr;
    }

    .tgp-legal-contact {
        grid-template-columns: 1fr;
        padding: 25px 22px;
    }
}

@media (max-width: 480px) {
    .tgp-legal-page.tmp-section-gap {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .tgp-legal-intro > p:not(.tgp-legal-kicker):not(.tgp-legal-date),
    .tgp-legal-section p,
    .tgp-legal-section li {
        font-size: 15px;
    }

    .tgp-legal-nav {
        padding: 21px;
    }
}
