:root {
    --legal-primary: #3438f3;
    --legal-primary-dark: #1627a5;
    --legal-blue: #176fc2;
    --legal-cyan: #2fc4e3;
    --legal-ink: #0b1733;
    --legal-text: #536178;
    --legal-muted: #7b879c;
    --legal-soft: #f5f7fc;
    --legal-border: #e1e7f0;
    --legal-white: #ffffff;
    --legal-shadow: 0 20px 60px rgba(15, 38, 75, 0.12);
}

.torevya-legal-page,
.torevya-legal-page * {
    box-sizing: border-box;
}

.torevya-legal-page {
    color: var(--legal-ink);
    background: var(--legal-white);
}

.torevya-legal-hero {
    position: relative;
    isolation: isolate;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--legal-white);
    background:
        radial-gradient(circle at 68% 20%, rgba(47, 196, 227, 0.22), transparent 28%),
        linear-gradient(120deg, #171fa8 0%, #3438f3 49%, #146dbb 100%);
}

.torevya-legal-hero::before,
.torevya-legal-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.torevya-legal-hero::before {
    right: -160px;
    bottom: -300px;
    width: 620px;
    height: 620px;
}

.torevya-legal-hero::after {
    right: -60px;
    bottom: -200px;
    width: 420px;
    height: 420px;
}

.torevya-legal-hero__glow {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to right, #000, transparent 85%);
}

.torevya-legal-hero__content {
    max-width: 760px;
    padding: 90px 0 110px;
}

.torevya-legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--legal-cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.torevya-legal-eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: currentColor;
}

.torevya-legal-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--legal-white);
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.torevya-legal-hero__content > p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.75;
}

.torevya-legal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    font-size: 13px;
    font-weight: 700;
}

.torevya-legal-breadcrumb a {
    color: var(--legal-white);
    text-decoration: none;
}

.torevya-legal-breadcrumb span {
    color: rgba(255, 255, 255, 0.64);
}

.torevya-legal-breadcrumb svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--legal-cyan);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-legal-hero__visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.torevya-legal-hero__visual::before {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 380px;
    height: 380px;
    content: "";
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 38% 62% 57% 43% / 47% 37% 63% 53%;
    transform: translate(-50%, -50%) rotate(-8deg);
}

.torevya-legal-hero__visual img {
    position: relative;
    z-index: 2;
    display: block;
    width: min(100%, 520px);
    height: auto;
    filter: drop-shadow(0 28px 42px rgba(4, 17, 75, 0.3));
}

.torevya-legal-hero__orb {
    position: absolute;
    z-index: 1;
    display: block;
    background: linear-gradient(145deg, rgba(255,255,255,.38), rgba(47,196,227,.18));
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 22px;
}

.torevya-legal-hero__orb--one {
    top: 50px;
    right: 24px;
    width: 70px;
    height: 70px;
    transform: rotate(18deg);
}

.torevya-legal-hero__orb--two {
    bottom: 44px;
    left: 18px;
    width: 46px;
    height: 46px;
    transform: rotate(-12deg);
}

.torevya-legal-summary {
    position: relative;
    z-index: 3;
    margin-top: -54px;
}

.torevya-legal-summary__panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    background: var(--legal-white);
    border: 1px solid var(--legal-border);
    border-radius: 22px;
    box-shadow: var(--legal-shadow);
}

.torevya-legal-summary__item {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 30px;
    border-right: 1px solid var(--legal-border);
}

.torevya-legal-summary__item:last-child {
    border-right: 0;
}

.torevya-legal-summary__item span {
    margin-bottom: 7px;
    color: var(--legal-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.torevya-legal-summary__item strong {
    color: var(--legal-ink);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.35;
}

.torevya-legal-content {
    padding: 100px 0 130px;
}

.torevya-legal-sidebar {
    position: sticky;
    top: 110px;
    overflow: hidden;
    background: var(--legal-soft);
    border: 1px solid var(--legal-border);
    border-radius: 22px;
}

.torevya-legal-sidebar__meta {
    display: grid;
    padding: 26px;
    color: var(--legal-white);
    background: linear-gradient(135deg, var(--legal-primary-dark), var(--legal-blue));
}

.torevya-legal-sidebar__meta span,
.torevya-legal-sidebar__meta small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
}

.torevya-legal-sidebar__meta strong {
    margin: 6px 0;
    font-size: 18px;
}

.torevya-legal-sidebar__section {
    padding: 24px 22px;
    border-bottom: 1px solid var(--legal-border);
}

.torevya-legal-sidebar__section:last-child {
    border-bottom: 0;
}

.torevya-legal-sidebar h2 {
    margin: 0 0 14px;
    color: var(--legal-ink);
    font-size: 15px;
}

.torevya-legal-sidebar nav {
    display: grid;
    gap: 6px;
}

.torevya-legal-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    color: var(--legal-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    border-radius: 9px;
    transition: color 180ms ease, background-color 180ms ease;
}

.torevya-legal-sidebar nav a:hover,
.torevya-legal-sidebar nav a.is-active {
    color: var(--legal-primary);
    background: var(--legal-white);
}

.torevya-legal-sidebar nav a > span {
    color: var(--legal-primary);
    font-size: 10px;
    font-weight: 800;
}

.torevya-legal-sidebar nav a > svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-legal-article {
    min-width: 0;
}

.torevya-legal-article__intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
    padding: 22px 24px;
    color: var(--legal-primary-dark);
    background: linear-gradient(135deg, #eef0ff, #ecfbff);
    border: 1px solid #dce4ff;
    border-radius: 16px;
}

.torevya-legal-article__intro svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--legal-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-legal-article__intro p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
}

.torevya-legal-section {
    padding: 34px 0;
    scroll-margin-top: 120px;
    border-bottom: 1px solid var(--legal-border);
}

.torevya-legal-section:first-of-type {
    padding-top: 18px;
}

.torevya-legal-section__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.torevya-legal-section__heading > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--legal-white);
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--legal-primary), var(--legal-blue));
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(52, 56, 243, 0.18);
}

.torevya-legal-section h2 {
    margin: 0;
    color: var(--legal-ink);
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.25;
}

.torevya-legal-section > p {
    margin: 0 0 15px;
    color: var(--legal-text);
    font-size: 15px;
    line-height: 1.85;
}

.torevya-legal-list {
    display: grid;
    gap: 11px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.torevya-legal-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    color: var(--legal-text);
    font-size: 14px;
    line-height: 1.65;
}

.torevya-legal-list svg {
    width: 21px;
    height: 21px;
    margin-top: 1px;
    fill: none;
    stroke: var(--legal-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-legal-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 17px 18px;
    color: #5e4a12;
    background: #fff8df;
    border: 1px solid #f4dea0;
    border-radius: 12px;
}

.torevya-legal-note svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #b48100;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-legal-note p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
}

.torevya-legal-table-wrap {
    margin-top: 22px;
    overflow-x: auto;
    border: 1px solid var(--legal-border);
    border-radius: 14px;
}

.torevya-legal-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.torevya-legal-table th,
.torevya-legal-table td {
    padding: 15px 16px;
    color: var(--legal-text);
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    border-bottom: 1px solid var(--legal-border);
}

.torevya-legal-table th {
    color: var(--legal-ink);
    font-weight: 800;
    background: var(--legal-soft);
}

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

.torevya-legal-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 20px;
    color: var(--legal-white);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--legal-primary), var(--legal-blue));
    border: 0;
    border-radius: 11px;
    box-shadow: 0 10px 24px rgba(52, 56, 243, 0.2);
}

.torevya-legal-contact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 36px;
    padding: 28px;
    color: var(--legal-white);
    background: linear-gradient(135deg, var(--legal-primary-dark), var(--legal-blue));
    border-radius: 18px;
}

.torevya-legal-contact__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--legal-white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
}

.torevya-legal-contact__icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-legal-contact span {
    color: var(--legal-cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.torevya-legal-contact h2 {
    margin: 4px 0 8px;
    color: var(--legal-white);
    font-size: 23px;
}

.torevya-legal-contact a {
    color: var(--legal-white);
    font-size: 14px;
    font-weight: 700;
}

.torevya-legal-action:focus-visible,
.torevya-legal-page a:focus-visible {
    outline: 3px solid rgba(47, 196, 227, 0.55);
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .torevya-legal-hero__visual::before {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 991.98px) {
    .torevya-legal-hero {
        min-height: auto;
    }

    .torevya-legal-hero__content {
        padding: 80px 0 15px;
    }

    .torevya-legal-hero__visual {
        min-height: 330px;
        padding-bottom: 60px;
    }

    .torevya-legal-hero__visual img {
        width: min(100%, 420px);
    }

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

    .torevya-legal-summary__item {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--legal-border);
    }

    .torevya-legal-summary__item:last-child {
        border-bottom: 0;
    }

    .torevya-legal-content {
        padding-top: 72px;
    }

    .torevya-legal-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .torevya-legal-hero h1 {
        font-size: 40px;
    }

    .torevya-legal-hero__content {
        padding-top: 64px;
    }

    .torevya-legal-hero__visual {
        min-height: 280px;
    }

    .torevya-legal-hero__visual::before {
        width: 260px;
        height: 260px;
    }

    .torevya-legal-summary {
        margin-top: -34px;
    }

    .torevya-legal-content {
        padding-bottom: 90px;
    }

    .torevya-legal-section__heading {
        align-items: start;
    }

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

@media (prefers-reduced-motion: reduce) {
    .torevya-legal-sidebar nav a {
        transition: none;
    }
}
