:root {
    --bg-color: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --border-color: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --glass-blur: 20px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 52px;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-content {
    max-width: 1024px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.logo {
    font-weight: 600;
    font-size: 19px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12px;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.nav-links a:hover {
    opacity: 1;
}

/* Main Content */
.main-content {
    padding-top: 100px;
    max-width: 1024px;
    margin: 0 auto;
    min-height: 100vh;
}

.hero-section {
    text-align: center;
    padding: 60px 22px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.07;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #0071e3, #42b883);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Timetable Grid & Cards */
.timetable-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.timetable-header {
    margin-bottom: 24px;
}

.timetable-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timetable-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.timetable-grid-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.timetable-grid {
    display: grid;
    grid-template-columns: 100px repeat(7, minmax(100px, 1fr));
    gap: 1px;
    background: var(--border-color);
    min-width: 800px;
}

.grid-header {
    background: #fbfbfd;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.time-cell {
    background: #fff;
    padding: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subject-cell {
    background: #fff;
    padding: 12px;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed);
}

.special-cell {
    background: #f5f5f7;
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 500;
}

.subject-cell:hover:not(.special-cell) {
    background: rgba(0, 113, 227, 0.05);
}

.timetable-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer */
.legal-page .content-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px 22px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.legal-page h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

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

.legal-page h2 {
    margin: 30px 0 15px;
    font-size: 24px;
}

.legal-page p,
.legal-page ul {
    margin-bottom: 20px;
    color: #424245;
}

.legal-page ul {
    padding-left: 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    z-index: 2000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.hidden {
    transform: translate(-50%, 150%);
    opacity: 0;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-text h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
}

/* Apple Buttons & Select */
.apple-button {
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
}

.apple-button.primary {
    background: var(--accent-color);
    color: #fff;
}

.apple-button.primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

/* Selector Buttons (Pill) */
.hero-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.selector-btn {
    padding: 6px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-speed);
}

.selector-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.selector-btn.active {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

/* Separation Line */
.separation-container {
    display: flex;
    align-items: center;
    max-width: 1024px;
    margin: 40px auto 0;
    padding: 0 22px;
    gap: 20px;
}

.separation-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.separation-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apple-select {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 60px 22px;
    background: #fbfbfd;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 734px) {
    .hero-title {
        font-size: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}