@property --bg-start {
    syntax: '<color>';
    inherits: true;
    initial-value: #8cabff;
}

@property --bg-end {
    syntax: '<color>';
    inherits: true;
    initial-value: #7450f6;
}

@property --bg-color {
    syntax: '<color>';
    inherits: true;
    initial-value: #816bf7;
}

:root {
    --bg-color: #816bf7;
    --bg-start: #8cabff;
    --bg-end: #7450f6;
    --text-color: #ffffff;
    --link-color: #ffffff;
    --link-hover-color: rgba(255, 255, 255, 0.8);
    --font-main: 'Inter', system-ui, sans-serif;
    --transition-speed: 0.8s;
}

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

/* Body Layout */
body {
    background-color: var(--bg-color);
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    overflow-x: hidden;
}

.content-wrapper {
    max-width: 900px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.6rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 42px;
    height: 42px;
}

.nav-button:hover {
    background: white;
    color: #7450f6;
    border-color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-link {
    display: flex;
    align-items: center;
}

.main-logo {
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 1;
    display: inline-block;
    vertical-align: middle;
}

.main-header {
    margin-bottom: 4rem;
}

.main-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 400;
    opacity: 0.95;
}

/* Policy List */
.policy-nav {
    margin-bottom: 5rem;
}

.policy-nav ul {
    list-style: none;
}

.policy-nav li {
    margin-bottom: 0.75rem;
}

.policy-nav a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.policy-nav a:hover {
    opacity: 0.8;
}

/* Notice Section */
.policy-notice {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 6rem;
    opacity: 0.9;
}

.policy-notice a {
    color: var(--link-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Footer */
footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 2rem;
    padding-bottom: 2rem; /* Added for independent layout */
    flex-shrink: 0;
}

.bottom-nav a {
    text-decoration: none;
    color: var(--link-color); /* Updated to match theme variable */
    opacity: 0.7;
    font-weight: 700;
    font-size: 1.1rem;
    transition: opacity 0.2s ease;
}

.bottom-nav a:hover {
    opacity: 1;
}

/* Logo */

/* Media Queries */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .policy-nav a {
        font-size: 1.1rem;
    }
}
