.policy-page {
    background: #111;
    min-height: 100vh;
    color: #fefefe;
}

.policy-page__spacer {
    height: 220px;
}

@media (min-width: 48em) {
    .policy-page__spacer {
        height: 260px;
    }
}

@media (min-width: 60em) {
    .policy-page__spacer {
        height: 300px;
    }
}

@media (min-width: 75em) {
    .policy-page__spacer {
        height: 360px;
    }
}

.policy-page__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.policy-tabs {
    width: 100%;
    margin: 0 auto 32px;
}

.policy-tabs ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.policy-tabs li {
    flex: 1 1 0;
    min-width: 0;
    background: #121215;
}

.policy-tabs a {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: #171e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-family: 'Last Epoch', serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

.policy-tabs a:hover {
    background: #101616;
    color: #e9c98b;
}

.policy-tabs li.active a {
    background: #0a0c0c;
    color: #e9c98b;
    border-color: #e9c98b;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

@media (min-width: 768px) {
    .policy-tabs a {
        font-size: 16px;
        letter-spacing: 1px;
        padding: 15px 12px;
    }
}

@media (min-width: 960px) {
    .policy-tabs a {
        font-size: 18px;
        letter-spacing: 2px;
        padding: 15px 18px;
    }
}

@media (max-width: 767.98px) {
    .policy-tabs ul {
        flex-direction: column;
    }

    .policy-tabs a {
        min-height: 44px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        letter-spacing: 1px;
        padding: 12px 10px;
        white-space: normal;
        line-height: 1.3;
    }
}

.policy-page__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.policy-page__title {
    font-family: 'Last Epoch', serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d8d8d8;
    margin: 0;
    line-height: 1.2;
}

.policy-page__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-end;
}

.policy-version {
    position: relative;
}

.policy-lang .policy-version__button {
    min-width: 180px;
}

.policy-version__button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    padding: 8px 12px;
    background: #0a0c0c;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fefefe;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.policy-version__button:hover,
.policy-version.is-open .policy-version__button {
    border-color: #e9c98b;
    color: #e9c98b;
}

.policy-version__chevron {
    margin-left: auto;
    transition: transform 0.15s ease;
}

.policy-version.is-open .policy-version__chevron {
    transform: rotate(180deg);
}

.policy-version__list {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #0a0c0c;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.policy-version__list li {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.policy-version__list li:hover,
.policy-version__list li.selected {
    color: #e9c98b;
    background: #101616;
}

@media (min-width: 768px) {
    .policy-page__header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .policy-page__title {
        font-size: 36px;
    }

    .policy-page__controls {
        align-self: auto;
        margin-bottom: 4px;
    }
}

.policy-document__subtitle {
    font-family: 'Last Epoch', serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d8d8d8;
    margin: 0 0 8px;
}

.policy-document__effective {
    color: #bdbdbd;
    margin: 0 0 32px;
}

.policy-document__section {
    margin-bottom: 32px;
}

.policy-document__section h2 {
    font-family: 'Last Epoch', serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fefefe;
}

.policy-document__section p {
    font-size: 16px;
    line-height: 1.7;
    color: #e6e6e6;
    margin: 0 0 12px;
}

.policy-document__section a,
.policy-document a {
    color: #e9c98b;
}

.policy-document__block {
    display: contents;
}

.policy-document h2,
.policy-document h3 {
    scroll-margin-top: 140px;
}

.policy-document h2 {
    font-family: 'Last Epoch', 'Segoe UI', 'Malgun Gothic', 'Yu Gothic',
        'Microsoft YaHei', serif;
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: #fefefe;
}

.policy-document h3 {
    font-family: 'Last Epoch', 'Segoe UI', 'Malgun Gothic', 'Yu Gothic',
        'Microsoft YaHei', serif;
    font-size: 16px;
    font-weight: 700;
    margin: 22px 0 10px;
    color: #d0c29d;
}

.policy-document p {
    font-size: 16px;
    line-height: 1.7;
    color: #e6e6e6;
    margin: 0 0 12px;
}

.policy-document__label {
    font-family: 'Last Epoch', 'Segoe UI', 'Malgun Gothic', 'Yu Gothic',
        'Microsoft YaHei', serif;
    margin-top: 28px;
}

.policy-document__toc {
    margin: 0 0 4px;
    padding-left: 1.25em;
}

.policy-inlines .is-bold {
    font-weight: 700;
}

.policy-inlines .is-italic {
    font-style: italic;
}

.policy-document__table-wrap {
    overflow-x: auto;
    margin: 0 0 16px;
}

.policy-document__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
    color: #e6e6e6;
}

.policy-document__table th,
.policy-document__table td {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.policy-document__table th {
    font-family: 'Last Epoch', 'Segoe UI', 'Malgun Gothic', 'Yu Gothic',
        'Microsoft YaHei', serif;
    font-weight: 700;
    color: #e9c98b;
    background: #0a0c0c;
}

.policy-document__table .policy-inlines {
    display: block;
}

.policy-document__table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.policy-roc h3 {
    font-family: 'Last Epoch', serif;
    font-size: 14px;
    font-weight: 700;
    margin: 28px 0 10px;
    color: #d0c29d;
    letter-spacing: 0.4px;
    text-transform: none;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #d0c29d;
}

.policy-roc__clauses {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: roc-clause;
}

.policy-roc__clauses > li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #e6e6e6;
    counter-increment: roc-clause;
}

.policy-roc__clauses > li::before {
    content: counter(roc-clause) ')';
    position: absolute;
    left: 0;
    top: 0;
    color: #e9c98b;
}

.policy-roc__bullets {
    list-style: none;
    margin: 8px 0 16px;
    padding: 0;
}

.policy-roc__bullets > li {
    position: relative;
    padding-left: 1.25em;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.7;
    color: #e6e6e6;
}

.policy-roc__bullets > li::before {
    content: '–';
    position: absolute;
    left: 0;
}

.policy-roc__table-title {
    font-family: 'Last Epoch', serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #d8d8d8;
    margin: 28px 0 12px;
}

.policy-roc__table-wrap {
    overflow-x: auto;
    margin: 0 0 16px;
}

.policy-roc__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
    color: #e6e6e6;
}

.policy-roc__table th,
.policy-roc__table td {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.policy-roc__table th {
    font-family: 'Last Epoch', serif;
    font-weight: 700;
    color: #e9c98b;
    background: #0a0c0c;
}

.policy-roc__table td:first-child,
.policy-roc__table th:first-child {
    width: 64px;
    white-space: nowrap;
}

.policy-roc__table td:last-child,
.policy-roc__table th:last-child {
    width: 30%;
}

.policy-roc__table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}
