:root {
    --rp-text: #14222f;
    --rp-muted: #6b7a89;
    --rp-border: #dfe7ef;
    --rp-primary: #11a39c;
    --rp-primary-dark: #08746f;
    --rp-primary-soft: rgba(17, 163, 156, 0.14);
    --rp-accent: #6d5dfc;
    --rp-shadow: 0 28px 80px rgba(7, 20, 36, 0.22);
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px 48px;
    background: #071424 !important;
    color: var(--rp-text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(17, 163, 156, 0.42), transparent 26rem),
        radial-gradient(circle at 86% 14%, rgba(109, 93, 252, 0.26), transparent 24rem),
        linear-gradient(135deg, #071424 0%, #102436 48%, #dff7f5 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.75), transparent 68%);
}

#tsparticles {
    opacity: 0.2;
}

.back-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(7, 20, 36, 0.16);
    backdrop-filter: blur(18px);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.back-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

.policies-container {
    position: relative;
    z-index: 1;
    max-width: 940px;
    margin: 28px auto 0;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--rp-shadow);
    backdrop-filter: blur(20px);
}

.policies-container h1 {
    margin: 0 0 24px;
    text-align: center;
    color: var(--rp-text);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--rp-primary-dark), var(--rp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-section {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid var(--rp-border);
    border-left: 5px solid var(--rp-primary);
    border-radius: 18px;
    background: #f8fbfd;
}

.policy-section h2 {
    margin: 0 0 8px;
    font-size: 19px;
    color: var(--rp-text);
    font-weight: 850;
}

.policy-section p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--rp-muted);
}

.policy-section a {
    color: var(--rp-primary-dark);
    font-weight: 800;
}

body > p {
    position: relative;
    z-index: 1;
}

html.dark-mode .policies-container,
body.dark-mode .policies-container {
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--rp-text) !important;
}

html.dark-mode .policy-section,
body.dark-mode .policy-section {
    background: #f8fbfd !important;
    color: var(--rp-text) !important;
}

html.dark-mode .policy-section h2,
html.dark-mode .policy-section p,
body.dark-mode .policy-section h2,
body.dark-mode .policy-section p {
    color: var(--rp-text) !important;
}

@media (max-width: 640px) {
    body {
        padding: 16px 12px 36px;
    }

    .policies-container {
        border-radius: 22px;
        margin-top: 18px;
    }
}
