/* =====================================================
   Fabric Memory Match — Privacy Policy Styles
   Theme: Luxurious Purple & Gold
   ===================================================== */

/* --- CSS Custom Properties --- */
:root {
    --purple-darkest: #1a0a2e;
    --purple-darker: #2d1154;
    --purple-dark: #3e1a6e;
    --purple-mid: #5c2d91;
    --purple-light: #7b4bb5;
    --purple-lighter: #a67ed4;
    --purple-lightest: #d4bff0;
    --purple-ghost: #f0e6fa;

    --gold-dark: #8b6914;
    --gold: #c9a227;
    --gold-light: #dbb84d;
    --gold-lighter: #f0d77a;
    --gold-lightest: #fef5d4;

    --green-soft: #2ecc71;
    --green-bg: #e8faf0;
    --blue-soft: #3498db;
    --blue-bg: #e8f4fd;
    --red-soft: #e74c3c;
    --red-bg: #fce8e6;
    --amber-soft: #f39c12;
    --amber-bg: #fef6e6;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-light: #7a7a9a;
    --text-inverse: #ffffff;

    --bg-body: #f8f4fd;
    --bg-card: #ffffff;
    --bg-card-hover: #faf7ff;

    --shadow-sm: 0 2px 8px rgba(93, 45, 145, 0.06);
    --shadow-md: 0 4px 20px rgba(93, 45, 145, 0.1);
    --shadow-lg: 0 8px 40px rgba(93, 45, 145, 0.15);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Sparkle Canvas --- */
#sparkle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--purple-darker);
    line-height: 1.3;
}

a {
    color: var(--purple-mid);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--gold);
}

/* =====================================================
   HEADER
   ===================================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 10, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    transition: var(--transition);
}

#site-header.scrolled {
    background: rgba(26, 10, 46, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 12px rgba(201, 162, 39, 0.3);
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.75rem;
    color: var(--purple-lighter);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light);
    background: rgba(201, 162, 39, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(201, 162, 39, 0.15);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
#hero {
    position: relative;
    padding: 140px 24px 80px;
    background: linear-gradient(160deg, var(--purple-darkest) 0%, var(--purple-darker) 30%, var(--purple-dark) 60%, var(--purple-mid) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(123, 75, 181, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Quilted texture overlay */
#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0;
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.1));
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 1rem;
    color: var(--gold);
}

.hero-heading {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item i {
    color: var(--gold);
    font-size: 1rem;
}

/* Floating Cards in Hero */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.card-2 {
    top: 35%;
    right: 10%;
    animation-delay: -2s;
    width: 50px;
    height: 65px;
    font-size: 1.2rem;
}

.card-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: -4s;
    width: 55px;
    height: 72px;
    font-size: 1.3rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    75% { transform: translateY(10px) rotate(-2deg); }
}

/* =====================================================
   SUMMARY CARDS SECTION
   ===================================================== */
.summary-section {
    position: relative;
    z-index: 2;
    padding: 60px 24px 48px;
    margin-top: -30px;
}

.section-label {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-mid);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.section-label i {
    color: var(--gold);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(93, 45, 145, 0.06);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 18px;
}

.summary-icon.green {
    background: var(--green-bg);
    color: var(--green-soft);
}

.summary-icon.blue {
    background: var(--blue-bg);
    color: var(--blue-soft);
}

.summary-icon.purple {
    background: var(--purple-ghost);
    color: var(--purple-mid);
}

.summary-icon.gold {
    background: var(--gold-lightest);
    color: var(--gold-dark);
}

.summary-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.summary-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   MAIN CONTENT LAYOUT
   ===================================================== */
.main-content {
    position: relative;
    z-index: 2;
    padding: 48px 24px 80px;
}

.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

/* --- Table of Contents --- */
.toc-sidebar {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 90px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(93, 45, 145, 0.06);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.toc-sticky::-webkit-scrollbar {
    width: 4px;
}

.toc-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.toc-sticky::-webkit-scrollbar-thumb {
    background: var(--purple-lightest);
    border-radius: 4px;
}

.toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--purple-mid);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.toc-title i {
    color: var(--gold);
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 2px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    line-height: 1.4;
}

.toc-link::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--purple-lighter);
    min-width: 20px;
    transition: var(--transition);
}

.toc-link:hover {
    background: var(--purple-ghost);
    color: var(--purple-mid);
}

.toc-link.active {
    background: linear-gradient(135deg, var(--purple-ghost), rgba(201, 162, 39, 0.08));
    color: var(--purple-dark);
    font-weight: 600;
}

.toc-link.active::before {
    color: var(--gold);
}

/* --- Policy Content --- */
.policy-content {
    min-width: 0;
}

.policy-intro {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gold);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.policy-intro p + p {
    margin-top: 12px;
}

.policy-intro strong {
    color: var(--purple-dark);
}

/* --- Policy Sections --- */
.policy-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(93, 45, 145, 0.04);
    overflow: hidden;
    transition: var(--transition);
}

.policy-section:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 36px 0;
}

.section-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 40px;
    line-height: 1;
}

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--purple-darker);
}

.section-body {
    padding: 20px 36px 32px;
    padding-left: 92px; /* Aligned with header text */
}

.section-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-body strong {
    color: var(--text-primary);
}

/* --- Info Boxes --- */
.info-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.info-box-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-box-content p {
    margin-bottom: 0 !important;
}

.info-box-safe {
    background: var(--green-bg);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.info-box-safe .info-box-icon {
    color: var(--green-soft);
}

.info-box-safe h4 {
    color: #1a8a4a;
}

.info-box-note {
    background: var(--blue-bg);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.info-box-note .info-box-icon {
    color: var(--blue-soft);
}

.info-box-warning {
    background: var(--amber-bg);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.info-box-warning .info-box-icon {
    color: var(--amber-soft);
}

/* --- No-Collect Grid --- */
.no-collect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.no-collect-grid span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

.no-collect-grid span i {
    color: var(--red-soft);
    font-size: 0.75rem;
}

/* --- Feature List --- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--purple-ghost);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--purple-lightest);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-mid);
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(93, 45, 145, 0.1);
}

/* --- Permission Card --- */
.permission-card {
    background: var(--purple-ghost);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 16px 0;
    border: 1px solid rgba(93, 45, 145, 0.08);
}

.permission-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.permission-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.permission-header h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple-darker);
}

.permission-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(93, 45, 145, 0.1);
    font-size: 0.875rem;
    color: var(--purple-mid);
}

.permission-note i {
    color: var(--green-soft);
}

/* --- Styled Lists --- */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.styled-list li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-lighter);
}

.styled-list.compact li {
    padding: 4px 0 4px 24px;
}

/* --- Highlight Grid --- */
.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.highlight-item {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.highlight-item i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.highlight-item p {
    font-size: 0.9rem;
    margin-bottom: 0 !important;
}

.highlight-item.red {
    background: var(--red-bg);
    border: 1px solid rgba(231, 76, 60, 0.15);
}

.highlight-item.red i {
    color: var(--red-soft);
}

/* --- Steps List --- */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--purple-ghost);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.step-item:hover {
    background: var(--purple-lightest);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--purple-darker);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.875rem;
    margin-bottom: 0 !important;
}

/* --- Contact Card --- */
.contact-card {
    background: linear-gradient(135deg, var(--purple-darkest), var(--purple-darker));
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--purple-lighter);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.contact-email {
    color: var(--gold-light) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-email:hover {
    color: var(--gold-lighter) !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
    position: relative;
    z-index: 2;
    background: linear-gradient(160deg, var(--purple-darkest), var(--purple-darker));
    border-top: 1px solid rgba(201, 162, 39, 0.15);
    padding: 40px 24px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.footer-brand strong {
    display: block;
    color: var(--gold-light);
    font-size: 0.95rem;
}

.footer-brand span {
    color: var(--purple-lighter);
    font-size: 0.8rem;
}

.footer-text {
    text-align: right;
}

.footer-text p {
    color: var(--purple-lighter);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-dark));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.policy-section,
.summary-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.policy-section.visible,
.summary-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .header-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(26, 10, 46, 0.97);
        flex-direction: column;
        padding: 16px 24px;
        border-top: 1px solid rgba(201, 162, 39, 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .header-nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    #hero {
        padding: 120px 20px 60px;
        min-height: 420px;
    }

    .hero-heading {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .floating-card {
        display: none;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-section {
        padding: 40px 16px 32px;
    }

    .main-content {
        padding: 32px 16px 60px;
    }

    .section-header {
        padding: 24px 24px 0;
    }

    .section-body {
        padding: 16px 24px 28px;
        padding-left: 24px;
    }

    .section-number {
        font-size: 1.3rem;
        min-width: auto;
    }

    .section-header h2 {
        font-size: 1.15rem;
    }

    .policy-intro {
        padding: 24px;
    }

    .no-collect-grid {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-text {
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .summary-card {
        padding: 24px 20px;
    }

    .info-box {
        flex-direction: column;
        gap: 12px;
    }

    .step-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Print Styles --- */
@media print {
    #sparkle-canvas,
    #site-header,
    .hero-visual,
    .back-to-top,
    .toc-sidebar {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .policy-section,
    .summary-card {
        opacity: 1;
        transform: none;
        break-inside: avoid;
    }

    #hero {
        background: none;
        padding: 20px;
        min-height: auto;
    }

    .hero-heading {
        background: none;
        -webkit-text-fill-color: black;
        font-size: 24pt;
    }

    .hero-description,
    .meta-item {
        color: #333;
    }
}
