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

:root {
    --accent: #C4A484;
    --bg: #FAF8F5;
    --text: #3D3A36;
    --text-secondary: rgba(61, 58, 54, 0.5);
    --card-bg: #FFFDFА;
    --warm-gray: #F5F2EE;
    --max-width: 800px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--text);
    text-decoration: none;
}

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

/* ===== Header ===== */
.header {
    padding: 20px 40px;
    border-bottom: 1.5px solid var(--accent);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.header-logo:hover {
    color: var(--text);
}

.header-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.header-logo span {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-right .support-link {
    font-size: 15px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.header-right .support-link:hover {
    color: var(--accent);
}

/* ===== App Store Badge ===== */
.app-store-link {
    display: inline-block;
    transition: opacity 0.2s;
}

.app-store-link:hover {
    opacity: 0.8;
}

.app-store-link img {
    height: 40px;
    display: block;
}

.app-store-link-small img {
    height: 32px;
}

/* ===== Hero ===== */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
}

.hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow:
        0 0 60px rgba(196, 164, 132, 0.3),
        0 0 120px rgba(196, 164, 132, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.08);
    margin-bottom: 28px;
}

.hero-brand {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 16px;
    max-width: 560px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 460px;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    border-top: 1.5px solid var(--accent);
    padding: 28px 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.footer-logo:hover {
    color: var(--text);
}

.footer-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-logo span {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--warm-gray);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ===== Legal Pages ===== */
.legal-content {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 60px;
    width: 100%;
}

.legal-content h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.legal-content .legal-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 36px;
}

.legal-content h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 14px;
    padding-left: 24px;
}

.legal-content li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .header {
        padding: 16px 20px;
    }

    .header-logo img {
        width: 30px;
        height: 30px;
    }

    .header-logo span {
        font-size: 16px;
    }

    .header-right {
        gap: 16px;
    }

    .header-right .support-link {
        font-size: 13px;
    }

    .hero {
        padding: 48px 20px 40px;
    }

    .hero-icon {
        width: 110px;
        height: 110px;
        border-radius: 26px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .footer {
        padding: 24px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

    .legal-content {
        padding: 32px 20px 48px;
    }

    .legal-content h1 {
        font-size: 24px;
    }

    .legal-content h2 {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .app-store-link-small img {
        height: 28px;
    }
}
