/* Apple-Style Legal Pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --background-light: #fbfbfd;
    --background-elevated: #f5f5f7;
    --border-color: #d2d2d7;
    --transition-smooth: cubic-bezier(0.28, 0.11, 0.32, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--background-light);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 44px;
}

.logo {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s var(--transition-smooth);
}

.logo:hover {
    opacity: 0.7;
}

/* Main Content */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.container {
    background: #ffffff;
    border-radius: 18px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

section {
    margin-bottom: 48px;
}

section:last-of-type {
    margin-bottom: 0;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.125;
    color: var(--text-primary);
    margin: 48px 0 20px;
}

section:first-of-type h2 {
    margin-top: 0;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 16px;
}

ul, ol {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 16px 0 16px 24px;
}

li {
    margin-bottom: 12px;
    padding-left: 8px;
}

ul li {
    list-style-type: disc;
}

ul ul {
    margin: 12px 0 0 24px;
}

ul ul li {
    list-style-type: circle;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s var(--transition-smooth);
}

a:hover {
    opacity: 0.7;
}

strong {
    font-weight: 600;
}

/* Contact Box */
.contact-box {
    background: var(--background-elevated);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.contact-box p {
    margin-bottom: 8px;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background: #fff9f0;
    border: 2px solid #f5d98a;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.warning-box h3 {
    font-size: 21px;
    margin: 0 0 16px;
    color: #b85d00;
}

.warning-box p, .warning-box ul {
    color: #603000;
}

.warning-box ul {
    margin-left: 20px;
}

/* Footer */
.footer {
    background: var(--background-elevated);
    padding: 32px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 32px 24px;
        border-radius: 0;
    }

    .legal-content {
        padding: 80px 0 40px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
        margin: 36px 0 16px;
    }

    h3 {
        font-size: 21px;
        margin: 24px 0 12px;
    }

    p, ul, ol {
        font-size: 16px;
    }

    .contact-box, .warning-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 19px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer {
        display: none;
    }

    .legal-content {
        padding-top: 20px;
    }

    .container {
        box-shadow: none;
        padding: 0;
    }

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

    h1, h2, h3 {
        page-break-after: avoid;
    }

    ul, ol, p {
        page-break-inside: avoid;
    }
}

