@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'DM Sans', 'Segoe UI', Roboto, sans-serif; }

:root {
    --primary:       #F23D55;
    --primary-dark:  #d62e45;
    --gradient:      #F23D55;
    --bg-light:      #fef2f3;
    --card-bg:       #ffffff;
    --text:          #1e293b;
    --text-light:    #64748b;
    --border:        rgba(242,61,85,0.2);
    --card-border:   rgba(242,61,85,0.1);
    --shadow:        0 8px 32px -4px rgba(242,61,85,0.18), 0 2px 8px rgba(0,0,0,0.05);
    --header-bg:     #F23D55;
    --header-text:   white;
    --footer-bg:     #fef2f3;
    --footer-border: rgba(242,61,85,0.2);
}

body.dark-mode {
    --primary:       #F23D55;
    --primary-dark:  #d62e45;
    --gradient:      linear-gradient(135deg, #1e293b, #334155, #0f172a);
    --bg-light:      #0f172a;
    --card-bg:       #1e293b;
    --text:          #f1f5f9;
    --text-light:    #cbd5e1;
    --border:        #475569;
    --card-border:   rgba(242,61,85,0.12);
    --shadow:        0 8px 32px -4px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
    --header-bg:     #0f172a;
    --header-text:   #f1f5f9;
    --footer-bg:     #0f172a;
    --footer-border: #334155;
}

body {
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}

/* ── Header ── */
.header {
    background: var(--header-bg);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--header-text);
    box-shadow: 0 4px 20px rgba(242,61,85,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 280px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: white;
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: opacity 0.2s;
}

.logo:hover { opacity: 0.9; }

.logo-wand {
    display: inline-block;
    font-size: 2rem;
    color: #3DD9D6;
    margin-right: 6px;
    animation: wandIconDance 3s ease-in-out infinite;
    transform-origin: bottom left;
    filter: drop-shadow(0 2px 6px rgba(61,217,214,0.4));
}

.logo:hover .logo-wand {
    animation: wandIconBounce 0.55s ease-in-out;
}

@keyframes wandIconDance {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    25%       { transform: rotate(8deg) scale(1.05); }
    50%       { transform: rotate(-5deg) scale(0.97); }
    75%       { transform: rotate(6deg) scale(1.03); }
}

@keyframes wandIconBounce {
    0%   { transform: rotate(-8deg) scale(1); }
    25%  { transform: rotate(18deg) scale(1.18) translateY(-6px); }
    60%  { transform: rotate(-10deg) scale(0.95) translateY(3px); }
    100% { transform: rotate(-8deg) scale(1); }
}

.logo-pdf-text  { color: rgba(255,255,255,0.72); display: inline-block; animation: pdfDance 3s ease-in-out infinite; }
.logo-wand-text { color: #3DD9D6; margin-left: 4px; display: inline-block; animation: wandDance 3s ease-in-out infinite 0.15s; }

@keyframes pdfDance {
    0%,100% { transform: translateY(0) rotate(0deg); }
    20%     { transform: translateY(-4px) rotate(-2deg); }
    60%     { transform: translateY(-3px) rotate(-1deg); }
}

@keyframes wandDance {
    0%,100% { transform: translateY(0) rotate(0deg); }
    20%     { transform: translateY(-3px) rotate(1.5deg); }
    60%     { transform: translateY(-4px) rotate(2deg); }
}

.theme-toggle {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.theme-toggle:hover { background: rgba(255,255,255,0.28); transform: rotate(18deg); }
.theme-toggle i { pointer-events: none; }

/* ── Main content ── */
.main {
    flex: 1;
    max-width: 860px;
    margin: 2.5rem auto;
    width: 92%;
}

.policy-card {
    background: var(--card-bg);
    border-radius: 40px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    color: var(--text);
}

h1 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    font-weight: 800;
}

h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin: 2rem 0 0.7rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    margin: 1.2rem 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
}

p, li {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

ul, ol { margin-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.last-updated {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    display: block;
}

.notice-box {
    background: rgba(242,61,85,0.07);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    line-height: 1.65;
}

.notice-box p { margin-bottom: 0; }

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--card-border);
    border-radius: 40px;
    transition: all 0.2s;
    background: transparent;
}

.back-home:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(242,61,85,0.3);
    text-decoration: none;
}

/* ── Cards grid (about / contact) ── */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.info-card {
    flex: 1 1 200px;
    background: var(--bg-light);
    padding: 1.4rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.info-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.info-card h3 { color: var(--primary); margin-bottom: 0.4rem; font-size: 1rem; }
.info-card p  { margin-bottom: 0; font-size: 0.88rem; color: var(--text-light); }
.info-card a  { color: var(--text); font-weight: 600; text-decoration: none; }
.info-card a:hover { color: var(--primary); }

/* ── Footer ── */
.footer-links {
    text-align: center;
    padding: 1rem;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.footer-links a:hover { background: rgba(242,61,85,0.08); text-decoration: underline; }

.footer-copyright {
    text-align: center;
    padding: 0.6rem;
    color: var(--text-light);
    font-size: 0.75rem;
    background: var(--footer-bg);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .logo { font-size: 1.9rem; }
    .logo i { font-size: 1.6rem; }
    .theme-toggle { top: 0.6rem; right: 0.6rem; width: 34px; height: 34px; font-size: 0.9rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.1rem; }
    .policy-card { padding: 1.5rem 1.2rem; border-radius: 28px; }
}
