* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c9182b;
    --dark-red: #7f0d18;
    --neon-red: #e74655;
    --bg-dark: #07080b;
    --panel: #151820;
    --text-white: #f8f9fa;
    --text-gray: #adb5bd;
    --text-soft: #d7d9df;
    --line: rgba(255, 255, 255, 0.1);
    --red-line: rgba(201, 24, 43, 0.28);
    --red-soft: rgba(201, 24, 43, 0.1);
    --accent-glow: rgba(232, 25, 42, 0.22);
    --shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    min-height: 100vh;
    font-family: "Rajdhani", sans-serif;
    background:
        radial-gradient(circle at 18% 8%, rgba(201, 24, 43, 0.09), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(201, 24, 43, 0.055), transparent 30%),
        linear-gradient(180deg, #0d0f14 0%, var(--bg-dark) 56%, #040507 100%);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
}

.bg-animation,
.grid-overlay,
.cursor-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-animation {
    background:
        radial-gradient(circle at 25% 30%, rgba(201, 24, 43, 0.055), transparent 42%),
        radial-gradient(circle at 75% 70%, rgba(201, 24, 43, 0.045), transparent 44%);
    opacity: 0.72;
}

.grid-overlay {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.cursor-glow {
    inset: auto;
    left: var(--x, 50vw);
    top: var(--y, 35vh);
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(232, 25, 42, 0.16);
    filter: blur(90px);
    transform: translate(-50%, -50%);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

header .container,
footer .container {
    max-width: 1400px;
}

header {
    padding: 1.2rem 0;
    background: rgba(10, 10, 13, 0.94);
    border-bottom: 1px solid rgba(185, 45, 56, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: "Orbitron", sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--primary-red);
    text-decoration: none;
    text-shadow: 0 0 20px var(--accent-glow);
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--red-line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(232, 25, 42, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 22px rgba(232, 25, 42, 0.22);
}

.logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(232, 25, 42, 0.58));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.45rem;
}

.nav-links a {
    position: relative;
    padding: 0.25rem 0;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0;
    transform: scaleX(0.3);
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #fff;
    text-shadow: 0 0 14px var(--accent-glow);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    cursor: pointer;
}

.menu-toggle span {
    position: relative;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, background 0.22s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease;
}

.menu-toggle span::before {
    transform: translateY(-7px);
}

.menu-toggle span::after {
    transform: translateY(7px);
}

header.nav-open .menu-toggle span {
    background: transparent;
}

header.nav-open .menu-toggle span::before {
    transform: rotate(45deg);
}

header.nav-open .menu-toggle span::after {
    transform: rotate(-45deg);
}

.policy-hero {
    padding: 5rem 0 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary-red);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0;
}

h1 {
    max-width: 860px;
    margin-top: 1.1rem;
    font-size: clamp(3rem, 8vw, 6.2rem);
    line-height: 1.05;
    background: linear-gradient(135deg, var(--text-white), #e9c5c9 42%, var(--primary-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy {
    max-width: 820px;
    margin-top: 1.4rem;
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 500;
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.meta-strip span,
.toc a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-weight: 700;
}

.meta-strip span {
    padding: 0.7rem 1rem;
}

.policy-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.3rem;
    align-items: start;
    padding: 1rem 0 6rem;
}

.toc,
.policy-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(232, 25, 42, 0.12), transparent 34%),
        rgba(21, 23, 30, 0.78);
    box-shadow: var(--shadow);
}

.toc {
    position: sticky;
    top: 98px;
    max-height: calc(100vh - 122px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.2rem;
    scrollbar-color: rgba(232, 25, 42, 0.56) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.toc::-webkit-scrollbar {
    width: 8px;
}

.toc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.toc::-webkit-scrollbar-thumb {
    background: rgba(232, 25, 42, 0.56);
    border-radius: 999px;
}

.toc h2 {
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.toc nav {
    display: grid;
    gap: 0.55rem;
}

.toc a {
    display: block;
    padding: 0.58rem 0.8rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.toc a:hover {
    border-color: var(--red-line);
    background: var(--red-soft);
    color: #fff;
}

.policy-card {
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

.policy-section {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.policy-section:first-child {
    padding-top: 0;
}

.policy-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.policy-section h3 {
    margin: 1.15rem 0 0.45rem;
    color: #fff;
    font-size: 1.05rem;
}

.policy-section p,
.policy-section li {
    color: var(--text-gray);
    font-size: 1.05rem;
    font-weight: 500;
}

.policy-section p + p {
    margin-top: 0.8rem;
}

ul {
    margin: 0.65rem 0 0 1.25rem;
}

li + li {
    margin-top: 0.28rem;
}

.notice {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--red-line);
    border-radius: 16px;
    background: rgba(201, 24, 43, 0.09);
}

.notice strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #fff;
    font-size: 1.05rem;
}

.email-link {
    color: #ff7b88;
    font-weight: 800;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

footer {
    position: relative;
    z-index: 1;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.footer-left {
    min-width: 1px;
}

.footer-copyright {
    display: grid;
    gap: 0.25rem;
    text-align: center;
}

.footer-policy-link {
    width: fit-content;
    justify-self: center;
}

footer a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

footer a:hover {
    color: var(--neon-red);
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c0c0c;
    border-radius: 50%;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-link:hover {
    color: var(--primary-red);
    border-color: rgba(185, 45, 56, 0.46);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (min-width: 901px) and (max-height: 820px) {
    .toc {
        padding: 1rem;
    }

    .toc h2 {
        margin-bottom: 0.7rem;
    }

    .toc nav {
        gap: 0.4rem;
    }

    .toc a {
        padding: 0.48rem 0.72rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 40px;
    }

    header {
        padding: 0.85rem 0;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .nav-links {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        gap: 0;
        opacity: 0;
        transition: max-height 0.24s ease, opacity 0.2s ease, padding-top 0.24s ease;
    }

    header.nav-open .nav-links {
        max-height: 360px;
        padding-top: 0.75rem;
        opacity: 1;
    }

    .nav-links a {
        padding: 0.8rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1.05rem;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-left {
        display: none;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 1rem;
    }

    .policy-hero {
        padding-top: 3.5rem;
    }

    h1 {
        font-size: clamp(2.7rem, 15vw, 4.4rem);
    }

    .policy-card {
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 0.65rem;
        font-size: 1.35rem;
    }

    .logo-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .logo img {
        width: 31px;
        height: 31px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}
