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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

body.dark-mode {
    background-color: #1a1a2e;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

body.dark-mode .site-header {
    background-color: #16213e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-title {
    color: #333;
    font-size: 1.8em;
    transition: color 0.3s;
}

body.dark-mode .site-title {
    color: #eee;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.tab-btn.active {
    background-color: #4CAF50;
    color: white;
}

body.dark-mode .tab-btn {
    border-color: #0f4c75;
    color: #3282b8;
}

body.dark-mode .tab-btn:hover {
    background-color: rgba(15, 76, 117, 0.2);
}

body.dark-mode .tab-btn.active {
    background-color: #0f4c75;
    color: white;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f2f5;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s, background-color 0.3s;
}

body.dark-mode .lang-toggle {
    background-color: #0f3460;
}

.lang-toggle:hover {
    transform: scale(1.05);
}

.lang-icon {
    font-size: 1.2em;
}

.lang-text {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

body.dark-mode .lang-text {
    color: #eee;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f2f5;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s, background-color 0.3s;
}

body.dark-mode .theme-toggle {
    background-color: #0f3460;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-icon {
    font-size: 1.2em;
}

.theme-text {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

body.dark-mode .theme-text {
    color: #eee;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

/* Tab Content */
.tab-content {
    display: none;
    width: 100%;
    max-width: 900px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section (Home Tab) */
.hero-section {
    text-align: center;
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

body.dark-mode .hero-section {
    background-color: #16213e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Fixed Quote */
.fixed-quote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    color: white;
}

body.dark-mode .fixed-quote {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.quote-text {
    font-size: 1.6em;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.5;
}

.quote-author {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Welcome Message */
.welcome-message {
    margin-bottom: 40px;
    padding: 0 20px;
}

.welcome-message h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
    transition: color 0.3s;
}

body.dark-mode .welcome-message h2 {
    color: #eee;
}

.welcome-message p {
    color: #555;
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
    transition: color 0.3s;
}

body.dark-mode .welcome-message p {
    color: #ccc;
}

/* Daily Cheer */
.daily-cheer {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: background-color 0.3s;
}

body.dark-mode .daily-cheer {
    background-color: #0f3460;
}

.daily-cheer h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4em;
    transition: color 0.3s;
}

body.dark-mode .daily-cheer h3 {
    color: #eee;
}

.cheer-message {
    font-size: 1.5em;
    color: #555;
    margin-bottom: 25px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    transition: opacity 0.3s, color 0.3s;
}

body.dark-mode .cheer-message {
    color: #ccc;
}

/* Features Preview */
.features-preview h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.4em;
    transition: color 0.3s;
}

body.dark-mode .features-preview h3 {
    color: #eee;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.3s, background-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

body.dark-mode .feature-card {
    background-color: #0f3460;
}

.feature-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
    transition: color 0.3s;
}

body.dark-mode .feature-card h4 {
    color: #eee;
}

.feature-card p {
    color: #666;
    font-size: 0.95em;
    transition: color 0.3s;
}

body.dark-mode .feature-card p {
    color: #aaa;
}

/* Emotion Section */
.emotion-section {
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

body.dark-mode .emotion-section {
    background-color: #16213e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.emotion-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
    text-align: center;
    transition: color 0.3s;
}

body.dark-mode .emotion-section h2 {
    color: #eee;
}

.section-description {
    color: #666;
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s;
}

body.dark-mode .section-description {
    color: #aaa;
}

/* Emotion Selector */
.emotion-selector {
    margin-bottom: 30px;
}

.emotion-selector > label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2em;
    text-align: center;
    transition: color 0.3s;
}

body.dark-mode .emotion-selector > label {
    color: #eee;
}

.emotion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.emotion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.emotion-btn:hover {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    transform: translateY(-3px);
}

.emotion-btn.selected {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

body.dark-mode .emotion-btn {
    background-color: #0f3460;
    border-color: #1a1a2e;
}

body.dark-mode .emotion-btn:hover {
    border-color: #3282b8;
    background-color: rgba(50, 130, 184, 0.2);
}

body.dark-mode .emotion-btn.selected {
    border-color: #3282b8;
    background-color: rgba(50, 130, 184, 0.3);
    box-shadow: 0 4px 15px rgba(50, 130, 184, 0.3);
}

.emotion-icon {
    font-size: 2em;
}

.emotion-label {
    font-size: 0.85em;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

body.dark-mode .emotion-label {
    color: #ccc;
}

/* Emotion Result */
.emotion-result {
    margin-top: 30px;
    margin-bottom: 40px;
}

.emotion-result.hidden {
    display: none;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

body.dark-mode .result-card {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.result-icon {
    font-size: 4em;
    display: block;
    margin-bottom: 20px;
}

.result-message {
    font-size: 1.4em;
    line-height: 1.6;
    margin-bottom: 25px;
    transition: opacity 0.3s;
}

/* Emotion Info */
.emotion-info {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

body.dark-mode .emotion-info {
    background-color: #0f3460;
}

.emotion-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    transition: color 0.3s;
}

body.dark-mode .emotion-info h3 {
    color: #eee;
}

.emotion-info p {
    color: #555;
    font-size: 1em;
    transition: color 0.3s;
}

body.dark-mode .emotion-info p {
    color: #ccc;
}

/* About Section */
.about-section {
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

body.dark-mode .about-section {
    background-color: #16213e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
    transition: color 0.3s;
}

body.dark-mode .about-section h2 {
    color: #eee;
}

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

.about-block {
    margin-bottom: 35px;
}

.about-block h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
    transition: color 0.3s;
}

body.dark-mode .about-block h3 {
    color: #eee;
}

.about-block p {
    color: #555;
    font-size: 1.05em;
    transition: color 0.3s;
}

body.dark-mode .about-block p {
    color: #ccc;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    color: #555;
    font-size: 1.05em;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    transition: color 0.3s;
}

.about-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

body.dark-mode .about-list li {
    color: #ccc;
}

body.dark-mode .about-list li::before {
    color: #3282b8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background-color: #f8f9fa;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
}

body.dark-mode .stat-item {
    background-color: #0f3460;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

body.dark-mode .stat-number {
    color: #3282b8;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    transition: color 0.3s;
}

body.dark-mode .stat-label {
    color: #aaa;
}

/* Buttons */
.btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

body.dark-mode .btn {
    background-color: #0f4c75;
}

body.dark-mode .btn:hover {
    background-color: #3282b8;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.site-footer {
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
    transition: background-color 0.3s;
}

body.dark-mode .site-footer {
    background-color: #16213e;
}

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

.footer-tagline {
    color: #555;
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 15px;
    transition: color 0.3s;
}

body.dark-mode .footer-tagline {
    color: #aaa;
}

.footer-copyright {
    color: #888;
    font-size: 0.9em;
    transition: color 0.3s;
}

body.dark-mode .footer-copyright {
    color: #666;
}

/* Wellness Section */
.wellness-section {
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

body.dark-mode .wellness-section {
    background-color: #16213e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wellness-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
    text-align: center;
    transition: color 0.3s;
}

body.dark-mode .wellness-section h2 {
    color: #eee;
}

.wellness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.wellness-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, background-color 0.3s;
}

.wellness-card:hover {
    transform: translateY(-5px);
}

body.dark-mode .wellness-card {
    background-color: #0f3460;
}

.wellness-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark-mode .wellness-card-header {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}

.wellness-icon {
    font-size: 2.5em;
}

.wellness-card-header h3 {
    color: white;
    font-size: 1.3em;
    margin: 0;
}

.wellness-card-content {
    padding: 25px;
}

.wellness-card-content p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
    transition: color 0.3s;
}

body.dark-mode .wellness-card-content p {
    color: #ccc;
}

.wellness-card-content h4 {
    color: #333;
    margin: 20px 0 12px;
    font-size: 1.1em;
    transition: color 0.3s;
}

body.dark-mode .wellness-card-content h4 {
    color: #eee;
}

.wellness-card-content ul {
    list-style: none;
    padding: 0;
}

.wellness-card-content li {
    color: #555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    transition: color 0.3s;
}

.wellness-card-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

body.dark-mode .wellness-card-content li {
    color: #ccc;
}

body.dark-mode .wellness-card-content li::before {
    color: #3282b8;
}

.wellness-note {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    font-size: 0.95em;
    margin-top: 15px;
    transition: background-color 0.3s;
}

body.dark-mode .wellness-note {
    background-color: rgba(50, 130, 184, 0.2);
    border-left-color: #3282b8;
}

.wellness-resources {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 15px;
    transition: background-color 0.3s;
}

body.dark-mode .wellness-resources {
    background-color: #0f3460;
}

.wellness-resources h3 {
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s;
}

body.dark-mode .wellness-resources h3 {
    color: #eee;
}

.wellness-resources p {
    color: #555;
    transition: color 0.3s;
}

body.dark-mode .wellness-resources p {
    color: #ccc;
}

.wellness-resources ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.wellness-resources li {
    color: #555;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    transition: color 0.3s;
}

.wellness-resources li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

body.dark-mode .wellness-resources li {
    color: #ccc;
}

body.dark-mode .wellness-resources li::before {
    color: #3282b8;
}

.wellness-resources a {
    color: #4CAF50;
    text-decoration: none;
}

.wellness-resources a:hover {
    text-decoration: underline;
}

body.dark-mode .wellness-resources a {
    color: #3282b8;
}

.wellness-disclaimer {
    font-style: italic;
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 15px;
}

/* Contact Section */
.contact-section {
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

body.dark-mode .contact-section {
    background-color: #16213e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
    text-align: center;
    transition: color 0.3s;
}

body.dark-mode .contact-section h2 {
    color: #eee;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s;
}

body.dark-mode .form-group label {
    color: #eee;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background-color: #0f3460;
    border-color: #1a1a2e;
    color: #eee;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #3282b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: flex-start;
    padding: 15px 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    transition: background-color 0.3s;
}

body.dark-mode .contact-info-card {
    background-color: #0f3460;
}

.contact-info-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
    transition: color 0.3s;
}

body.dark-mode .contact-info-card h3 {
    color: #eee;
}

.contact-info-card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    transition: color 0.3s;
}

body.dark-mode .contact-info-card p {
    color: #ccc;
}

.contact-info-card ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.contact-info-card li {
    color: #555;
    margin-bottom: 5px;
    transition: color 0.3s;
}

body.dark-mode .contact-info-card li {
    color: #ccc;
}

/* Legal Pages Styles */
.legal-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.nav-link.active {
    background-color: #4CAF50;
    color: white;
}

body.dark-mode .nav-link {
    color: #ccc;
}

body.dark-mode .nav-link:hover {
    background-color: rgba(50, 130, 184, 0.2);
}

body.dark-mode .nav-link.active {
    background-color: #0f4c75;
    color: white;
}

.site-title-link {
    text-decoration: none;
}

.legal-content {
    background-color: #fff;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    transition: background-color 0.3s;
}

body.dark-mode .legal-content {
    background-color: #16213e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.legal-content h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
    transition: color 0.3s;
}

body.dark-mode .legal-content h1 {
    color: #eee;
}

.last-updated {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 40px;
}

body.dark-mode .last-updated {
    color: #aaa;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    transition: color 0.3s;
}

body.dark-mode .legal-section h2 {
    color: #eee;
    border-bottom-color: #3282b8;
}

.legal-section h3 {
    color: #444;
    font-size: 1.1em;
    margin: 20px 0 10px;
    transition: color 0.3s;
}

body.dark-mode .legal-section h3 {
    color: #ddd;
}

.legal-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    transition: color 0.3s;
}

body.dark-mode .legal-section p {
    color: #ccc;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    transition: color 0.3s;
}

body.dark-mode .legal-section li {
    color: #ccc;
}

.legal-section a {
    color: #4CAF50;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

body.dark-mode .legal-section a {
    color: #3282b8;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

body.dark-mode .footer-links a {
    color: #aaa;
}

body.dark-mode .footer-links a:hover {
    color: #3282b8;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
        justify-content: center;
    }

    .site-title {
        width: 100%;
        text-align: center;
        font-size: 1.5em;
    }

    .tab-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.9em;
    }

    .hero-section,
    .emotion-section,
    .about-section {
        padding: 35px 20px;
    }

    .fixed-quote {
        padding: 25px;
    }

    .quote-text {
        font-size: 1.3em;
    }

    .welcome-message h2 {
        font-size: 1.5em;
    }

    .cheer-message {
        font-size: 1.2em;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .emotion-btn {
        min-width: 80px;
        padding: 12px 15px;
    }

    .emotion-icon {
        font-size: 1.5em;
    }

    .emotion-label {
        font-size: 0.75em;
    }

    .result-card {
        padding: 30px 20px;
    }

    .result-icon {
        font-size: 3em;
    }

    .result-message {
        font-size: 1.2em;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Wellness responsive */
    .wellness-grid {
        grid-template-columns: 1fr;
    }

    .wellness-card-header {
        padding: 15px;
    }

    .wellness-card-header h3 {
        font-size: 1.1em;
    }

    .wellness-card-content {
        padding: 20px;
    }

    /* Contact responsive */
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: -1;
    }

    .btn-submit {
        width: 100%;
    }

    /* Legal pages responsive */
    .legal-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.9em;
    }

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

    .legal-content h1 {
        font-size: 1.6em;
    }

    .legal-section h2 {
        font-size: 1.2em;
    }

    /* Header controls responsive */
    .header-controls {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .lang-toggle,
    .theme-toggle {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .lang-text,
    .theme-text {
        display: none;
    }
}
