:root {
    --oh-legal-ink: #17201d;
    --oh-legal-cream: #f4f0e8;
    --oh-legal-sand: #e4ddd0;
    --oh-legal-gold: #b88a42;
    --oh-legal-green: #233a31;
    --oh-legal-white: #fffdf8;
}

.oh-legal-experience {
    background: var(--oh-legal-cream);
    color: var(--oh-legal-ink);
}

.oh-legal-page {
    overflow: clip;
    padding: 120px 24px 96px;
    background:
        radial-gradient(circle at 87% 6%, rgba(184, 138, 66, 0.13), transparent 30%),
        linear-gradient(180deg, #f8f5ef 0%, var(--oh-legal-cream) 100%);
}

.oh-legal-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.oh-legal-hero {
    max-width: 940px;
    padding: 36px 0 52px;
}

.oh-legal-kicker,
.oh-consent-banner__eyebrow {
    margin: 0 0 18px;
    color: var(--oh-legal-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.oh-legal-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--oh-legal-ink);
    font-size: clamp(42px, 7vw, 82px);
    font-weight: 380;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.oh-legal-lead {
    max-width: 760px;
    margin: 30px 0 0;
    color: #3f4945;
    font-size: clamp(19px, 2.2vw, 25px);
    line-height: 1.55;
}

.oh-legal-draft {
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
    gap: 18px;
    max-width: 830px;
    margin-top: 34px;
    padding: 18px 20px;
    border-left: 3px solid var(--oh-legal-gold);
    background: rgba(255, 253, 248, 0.72);
    color: #3d4742;
    font-size: 15px;
    line-height: 1.6;
}

.oh-legal-draft strong {
    color: var(--oh-legal-ink);
}

.oh-legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 48px;
    padding: 18px 0;
    border-top: 1px solid rgba(23, 32, 29, 0.18);
    border-bottom: 1px solid rgba(23, 32, 29, 0.18);
}

.oh-legal-toc a {
    padding: 9px 13px;
    border: 1px solid rgba(23, 32, 29, 0.14);
    border-radius: 999px;
    color: var(--oh-legal-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.oh-legal-content {
    display: grid;
    gap: 18px;
}

.oh-legal-content > section {
    position: relative;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid rgba(23, 32, 29, 0.12);
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.8);
    box-shadow: 0 30px 80px rgba(29, 41, 36, 0.06);
}

.oh-legal-section-number {
    margin: 0 0 18px;
    color: var(--oh-legal-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.oh-legal-content h2 {
    margin: 0 0 22px;
    color: var(--oh-legal-ink);
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 430;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.oh-legal-content h3 {
    margin: 26px 0 10px;
    color: var(--oh-legal-ink);
    font-size: 20px;
    line-height: 1.35;
}

.oh-legal-content p,
.oh-legal-content li,
.oh-legal-content td,
.oh-legal-content th {
    font-size: 17px;
    line-height: 1.75;
}

.oh-legal-content p,
.oh-legal-content ul,
.oh-legal-content ol {
    max-width: 880px;
}

.oh-legal-content a {
    color: #294f40;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.oh-legal-pending {
    margin-top: 22px;
    padding: 15px 17px;
    border-left: 3px solid var(--oh-legal-gold);
    background: rgba(184, 138, 66, 0.09);
}

.oh-inline-privacy-button {
    min-height: 46px;
    margin: 8px 0 14px;
    padding: 12px 18px;
    border: 1px solid var(--oh-legal-green);
    border-radius: 999px;
    background: var(--oh-legal-green);
    color: #fff;
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
}

.oh-legal-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(23, 32, 29, 0.13);
    border-radius: 16px;
}

.oh-legal-table-wrap table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: var(--oh-legal-white);
}

.oh-legal-table-wrap th,
.oh-legal-table-wrap td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(23, 32, 29, 0.1);
    text-align: left;
    vertical-align: top;
}

.oh-legal-table-wrap th {
    background: var(--oh-legal-green);
    color: #fff;
    font-size: 14px;
}

.oh-cookie-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.oh-cookie-grid article {
    padding: 24px;
    border: 1px solid rgba(23, 32, 29, 0.12);
    border-radius: 18px;
    background: #faf7f0;
}

.oh-cookie-grid article > span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(184, 138, 66, 0.14);
    color: #77521e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oh-legal-footer {
    position: relative;
    z-index: 20;
    padding: 22px 24px;
    background: #13211c;
    color: rgba(255, 255, 255, 0.78);
}

.oh-legal-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, 100%);
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.5;
}

.oh-legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.oh-legal-footer a,
.oh-legal-footer button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.oh-privacy-trigger {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99996;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: #21372e;
    box-shadow: 0 14px 35px rgba(18, 31, 26, 0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
}

.oh-consent-banner {
    position: fixed;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 99998;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    width: min(1180px, calc(100% - 44px));
    max-height: calc(100vh - 44px);
    margin: 0 auto;
    padding: 26px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(19, 33, 28, 0.98);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
    color: #fff;
}

.oh-consent-banner[hidden] {
    display: none;
}

.oh-consent-banner__copy {
    max-width: 710px;
}

.oh-consent-banner__copy h2,
.oh-consent-dialog h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 450;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.oh-consent-banner__copy p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.55;
}

.oh-consent-banner__copy a {
    color: #fff;
    text-underline-offset: 3px;
}

.oh-consent-banner__actions,
.oh-consent-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.oh-button {
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.2;
    cursor: pointer;
}

.oh-button--primary {
    background: #d5aa67;
    color: #17201d;
}

.oh-button--outline {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
}

.oh-button--quiet {
    background: transparent;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.oh-consent-dialog {
    width: min(720px, calc(100% - 30px));
    max-height: min(800px, calc(100vh - 30px));
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    background: #172820;
    box-shadow: 0 35px 120px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.oh-consent-dialog::backdrop {
    background: rgba(8, 14, 12, 0.72);
    backdrop-filter: blur(5px);
}

.oh-consent-dialog__panel {
    max-height: min(800px, calc(100vh - 30px));
    padding: 28px;
    overflow-y: auto;
}

.oh-consent-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.oh-consent-dialog__close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.oh-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.oh-consent-category h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.oh-consent-category p,
.oh-consent-dialog__note {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.55;
}

.oh-consent-switch {
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 8px;
    min-width: 136px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.oh-consent-switch input {
    width: 46px;
    height: 24px;
    margin: 0;
    accent-color: #d5aa67;
}

.oh-consent-dialog__note {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.oh-privacy-trigger:focus-visible,
.oh-button:focus-visible,
.oh-inline-privacy-button:focus-visible,
.oh-consent-dialog__close:focus-visible,
.oh-legal-footer a:focus-visible,
.oh-legal-footer button:focus-visible,
.oh-legal-toc a:focus-visible {
    outline: 3px solid #f1c477;
    outline-offset: 3px;
}

@media (max-width: 800px) {
    .oh-legal-page {
        padding: 92px 16px 70px;
    }

    .oh-legal-draft,
    .oh-consent-banner,
    .oh-cookie-grid {
        grid-template-columns: 1fr;
    }

    .oh-legal-footer__inner,
    .oh-consent-category {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .oh-legal-footer__inner {
        flex-direction: column;
    }

    .oh-consent-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        padding: 20px;
        border-radius: 20px;
    }

    .oh-consent-banner__actions,
    .oh-consent-dialog__actions {
        justify-content: stretch;
    }

    .oh-consent-banner__actions .oh-button,
    .oh-consent-dialog__actions .oh-button {
        width: 100%;
    }

    .oh-consent-switch {
        justify-items: start;
    }
}

@media (max-width: 520px) {
    .oh-legal-content > section {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .oh-legal-content p,
    .oh-legal-content li,
    .oh-legal-content td,
    .oh-legal-content th {
        font-size: 16px;
    }

    .oh-consent-dialog__panel {
        padding: 22px 18px;
    }

    .oh-privacy-trigger {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oh-privacy-trigger,
    .oh-button,
    .oh-legal-toc a {
        scroll-behavior: auto;
        transition: none !important;
    }
}
