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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 40px 0 20px;
    border-bottom: 2px solid var(--border);
    background: var(--background);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

.intro {
    background: var(--background);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Menu Grid */
.menu {
    margin: 40px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.menu-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.menu-card:not(.coming-soon):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.menu-card.coming-soon {
    opacity: 0.6;
    cursor: default;
    background: var(--surface);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.menu-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.menu-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    flex: 1;
}

.card-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    align-self: flex-end;
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Terms Content */
.terms-content {
    background: var(--background);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.terms-content article {
    max-width: 800px;
    margin: 0 auto;
}

.terms-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

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

.terms-content section {
    margin-bottom: 40px;
}

.terms-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.terms-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

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

.terms-content ul {
    margin: 16px 0 16px 32px;
    color: var(--text-secondary);
}

.terms-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.terms-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.terms-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.acknowledgment {
    background: var(--surface);
    padding: 32px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    margin-top: 48px;
}

.acknowledgment h2 {
    margin-top: 0;
}

.acknowledgment p {
    font-weight: 500;
}

.terms-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
}

.back-button,
.print-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.back-button {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    display: inline-block;
}

.back-button:hover {
    background: var(--background);
    border-color: var(--primary-color);
}

.print-button {
    background: var(--primary-color);
    color: white;
    border: none;
}

.print-button:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

    header {
        padding: 24px 0 16px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    main {
        padding: 24px 0;
    }

    .intro {
        padding: 20px;
        margin-bottom: 24px;
    }

    .intro p {
        font-size: 1rem;
    }

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

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

    .terms-content {
        padding: 24px 20px;
    }

    .terms-content h1 {
        font-size: 1.75rem;
    }

    .terms-content h2 {
        font-size: 1.25rem;
    }

    .terms-content h3 {
        font-size: 1rem;
    }

    .terms-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .back-button,
    .print-button {
        width: 100%;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }

    header,
    .terms-footer,
    footer,
    .back-button,
    .print-button {
        display: none;
    }

    .terms-content {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .terms-content h1 {
        page-break-after: avoid;
    }

    .terms-content section {
        page-break-inside: avoid;
    }
}
