

body {
    margin: 0;
    padding: 0;
    background: #2a2a2a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
}

.legal-section {
    width: 100%;
    padding: 12em 0 8em;
    display: flex;
    justify-content: center;
}

.legal-wrapper {
    max-width: 52em;
    width: 90vw;
}

.legal-headline {
    font-size: 2.8em;
    font-weight: 500;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.2em;
    padding-bottom: 0.6em;
    border-bottom: 2px solid rgba(201, 162, 77, 0.2);
}

.legal-subtitle {
    font-size: 1.05em;
    color: #888;
    margin: -0.6em 0 2em;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
}

.legal-toc {
    margin-bottom: 3em;
    padding: 1.8em 2em;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border-left: 3px solid rgba(201, 162, 77, 0.35);
}

.legal-toc-title {
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(201, 162, 77, 0.6);
    margin: 0 0 1.2em 0.2em;
}

.legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15em 2.5em;
    counter-reset: toc-counter;
}

.legal-toc ol li {
    margin: 0;
    padding: 0;
    counter-increment: toc-counter;
}

.legal-toc ol li a {
    display: block;
    padding: 0.45em 0.7em;
    font-size: 0.88em;
    font-weight: 400;
    color: #888;
    text-decoration: none;
    border-radius: 5px;
    transition: color 0.25s ease, background 0.25s ease;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
}

.legal-toc ol li a::before {
    content: counter(toc-counter, decimal-leading-zero) "  ";
    font-size: 0.85em;
    font-weight: 500;
    color: rgba(201, 162, 77, 0.4);
    transition: color 0.25s ease;
}

.legal-toc ol li a:hover {
    color: #C9A24D;
    background: rgba(201, 162, 77, 0.06);
}

.legal-toc ol li a:hover::before {
    color: rgba(201, 162, 77, 0.7);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: section-counter;
}

.legal-block {
    padding: 2em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    counter-increment: section-counter;
}

.legal-block:last-child {
    border-bottom: none;
}

.legal-block h2 {
    font-size: 1.2em;
    font-weight: 600;
    color: #C9A24D;
    margin-bottom: 0.8em;
    letter-spacing: 0.01em;
}

.legal-block h2::before {
    content: counter(section-counter, decimal-leading-zero) "  ";
    font-weight: 500;
    opacity: 0.45;
}

.legal-block p {
    font-size: 0.98em;
    line-height: 1.8;
    color: #b5b5b5;
    margin: 0 0 1em;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
}

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

.legal-block a {
    color: #C9A24D;
    text-decoration: none;
    transition: color 0.25s ease;
}

.legal-block a:hover {
    color: #d6b15c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-block ul {
    list-style: none;
    padding: 0;
    margin: 0.8em 0;
}

.legal-block ul li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.5em;
    font-size: 0.98em;
    line-height: 1.7;
    color: #b5b5b5;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
}

.legal-block ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(201, 162, 77, 0.5);
}

.cookie-table-wrap {
    overflow-x: auto;
    margin: 1.2em 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
}

.cookie-table thead {
    background: rgba(201, 162, 77, 0.08);
}

.cookie-table th {
    padding: 0.9em 1.2em;
    text-align: left;
    font-weight: 600;
    color: #C9A24D;
    font-size: 0.88em;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cookie-table td {
    padding: 0.8em 1.2em;
    color: #b5b5b5;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    line-height: 1.5;
}

.cookie-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.cookie-settings {
    margin-top: 1.5em;
}

.cookie-setting-item {
    padding: 1.3em 1.5em;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 0.8em;
    transition: border-color 0.25s ease;
}

.cookie-setting-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.cookie-setting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
}

.cookie-setting-info {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    flex: 1;
}

.cookie-setting-name {
    font-size: 0.98em;
    font-weight: 600;
    color: #e5e5e5;
}

.cookie-setting-desc {
    font-size: 0.85em;
    color: #888;
    line-height: 1.5;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.8em;
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle label {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.cookie-toggle label::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #666;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cookie-toggle input:checked + label {
    background: rgba(201, 162, 77, 0.3);
}

.cookie-toggle input:checked + label::after {
    transform: translateX(22px);
    background: #C9A24D;
}

.cookie-toggle.disabled label {
    cursor: not-allowed;
    background: rgba(201, 162, 77, 0.15);
}

.cookie-toggle.disabled label::after {
    transform: translateX(22px);
    background: rgba(201, 162, 77, 0.5);
}

.cookie-toggle-label {
    font-size: 0.78em;
    color: rgba(201, 162, 77, 0.6);
    font-weight: 500;
    white-space: nowrap;
}

.cookie-settings-actions {
    display: flex;
    gap: 0.8em;
    margin-top: 1.5em;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75em 1.8em;
    border-radius: 0.5em;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    letter-spacing: 0.02em;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cookie-btn-save {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-btn-save:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn-all {
    background: #C9A24D;
    color: #1e1e1e;
}

.cookie-btn-all:hover {
    background: #d6b15c;
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.04);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #b5b5b5;
    border-color: rgba(255, 255, 255, 0.15);
}

.cookie-settings-status {
    margin-top: 1em;
    font-size: 0.88em;
    color: #C9A24D;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
}

.cookie-settings-status.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .legal-section {
        padding: 9em 0 5em;
    }

    .legal-headline {
        font-size: 2.2em;
    }
}

@media (max-width: 600px) {
    .legal-section {
        padding: 9em 0 5em;
    }

    .legal-headline {
        font-size: 2em;
    }

    .legal-toc {
        padding: 1.4em 1.2em;
        margin-bottom: 2em;
    }

    .legal-toc ol {
        grid-template-columns: 1fr;
        gap: 0.1em;
    }

    .legal-toc ol li a {
        font-size: 0.85em;
        padding: 0.4em 0.6em;
    }

    .legal-block {
        padding: 1.5em 0;
    }

    .legal-block h2 {
        font-size: 1.1em;
    }

    .cookie-setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }

    .cookie-toggle {
        align-self: flex-end;
    }

    .cookie-settings-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.6em 0.8em;
        font-size: 0.82em;
    }
}