/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: oklch(0.12 0.015 285);
    --foreground: oklch(0.95 0.01 75);
    --card: oklch(0.16 0.02 285);
    --primary: oklch(0.72 0.15 45);
    --primary-foreground: oklch(0.12 0.015 285);
    --border: oklch(0.25 0.03 285);
    --muted-foreground: oklch(0.65 0.01 285);
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Crimson Pro', serif;
}

body {
    font-family: var(--font-serif);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 25, 45, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--border), 0.4);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--foreground);
}

.sparkle-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: var(--card);
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

/* Terms Container */
.terms-container {
    padding: 6rem 1rem 5rem;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 3rem;
}

/* Content Section */
.content-section {
    max-width: 56rem;
    margin: 0 auto;
}

.section-block {
    margin-bottom: 3rem;
}

.content-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-block p {
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Subsections */
.subsection {
    margin-bottom: 1.5rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.subsection p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* Lists */
.content-list {
    list-style-position: inside;
    color: var(--muted-foreground);
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.content-list li {
    margin-bottom: 0.25rem;
    line-height: 1.8;
}

/* Highlight */
.highlight-primary {
    color: var(--primary);
}

/* Policy Section */
.policy-section {
    border-top: 1px solid rgba(var(--border), 0.4);
    padding-top: 3rem;
}

/* Acknowledgment */
.acknowledgment {
    background-color: rgba(var(--card), 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(var(--border), 0.4);
    margin-top: 2rem;
}

.acknowledgment p {
    font-style: italic;
    text-align: center;
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* Back Button Container */
.back-button-container {
    margin-top: 3rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--card);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-container {
        padding: 5rem 1rem 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .btn-back span {
        display: none;
    }
}
