/* 
* NutriBro - Ernæringsstudio CSS
* Hovedstilark for hele nettstedet
*/

/* ===== GENERELLE STILER ===== */
:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #A5D6A7;
    --secondary: #FF9800;
    --secondary-dark: #F57C00;
    --secondary-light: #FFE0B2;
    --text-dark: #333333;
    --text-light: #f5f5f5;
    --text-grey: #757575;
    --bg-light: #FFFFFF;
    --bg-alt: #F9F9F9;
    --shadow: rgba(0, 0, 0, 0.1);
    --border: #E0E0E0;
    --transition: all 0.3s ease;
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.center-button {
    text-align: center;
    margin-top: 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.section-header p {
    color: var(--text-grey);
    font-size: 1.1rem;
}

/* ===== NAVIGASJON ===== */
header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo svg {
    margin-right: 0.5rem;
    fill: var(--primary);
}

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

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.kontakt-btn {
    background-color: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.kontakt-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* ===== HERO SEKSJON ===== */
.hero {
    padding: 6rem 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50%;
    height: 120%;
    background-color: var(--primary-light);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-grey);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: 0 15px 30px var(--shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ===== OM OSS SEKSJON ===== */
.about {
    background-color: var(--bg-alt);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: 0 10px 20px var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.value-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ===== OPPSKRIFTER SEKSJON ===== */
.recipe-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    background-color: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.recipe-image {
    height: 200px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.1);
}

.recipe-info {
    padding: 1.5rem;
}

.recipe-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.recipe-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.recipe-icon {
    font-style: normal;
    margin-right: 0.25rem;
}

.recipe-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.recipe-link:hover {
    color: var(--primary-dark);
}

/* ===== OPPNÅELSER SEKSJON ===== */
.achievements {
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 120%;
    background-color: var(--primary-light);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.achievement-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.achievement-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* ===== KLIENTER SEKSJON ===== */
.testimonials {
    position: relative;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    padding: 1rem;
}

.testimonial-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-light);
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-rating {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary-light);
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* ===== FAQ SEKSJON ===== */
.faq {
    background-color: var(--bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    color: var(--primary);
    transition: var(--transition);
}

.faq-toggle svg {
    transition: var(--transition);
}

.faq-item.active .faq-toggle svg {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* ===== KONTAKT SEKSJON ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
}

.contact-icon {
    color: var(--primary);
    margin-right: 1rem;
    padding: 0.75rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--text-grey);
    margin-bottom: 0;
}

.contact-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #333;
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .values {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem;
        box-shadow: 0 5px 10px var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
    }
    
    .kontakt-btn {
        width: 100%;
        text-align: center;
    }
    
    .values {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ===== ANIMASJONER ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== INTERAKTIVE ELEMENTER ===== */
.recipe-card {
    position: relative;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(76, 175, 80, 0), rgba(76, 175, 80, 0.2));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.recipe-card:hover::before {
    opacity: 1;
}

/* Кнопка наверх */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px var(--shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Стили для активных состояний */
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* Эффекты при наведении для карточек */
.value-card:hover .value-icon,
.achievement-card:hover .achievement-icon,
.contact-card:hover .contact-icon {
    animation: pulse 1s infinite;
}

/* Стилизация скролл-бара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
}

/* Стили для ошибок формы */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Анимация отправки формы */
.contact-form.sending {
    pointer-events: none;
    opacity: 0.7;
}

.contact-form.sending button {
    position: relative;
    padding-left: 2.5rem;
}

.contact-form.sending button::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    margin-top: -0.5rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для success.php */
.success-message {
    text-align: center;
    padding: 5rem 0;
}

.success-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Дополнительные улучшения */
.recipe-card:nth-child(odd):hover {
    transform: translateY(-10px) rotate(1deg);
}

.recipe-card:nth-child(even):hover {
    transform: translateY(-10px) rotate(-1deg);
}

/* Эффект затухания для фоновых элементов */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: 1;
}

.achievements::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: 1;
}

/* Доступность элементов при фокусе */
a:focus, 
button:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: 3px solid var(--primary-light);
}

/* Эффект мерцания для нажимаемых элементов */
.btn:active, 
.category-btn:active, 
.faq-question:active {
    transform: scale(0.98);
}

/* Печатные стили */
@media print {
    header, 
    footer, 
    .hero-buttons, 
    .contact-form, 
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Поддержка темного режима */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --bg-alt: #2a2a2a;
        --text-dark: #f5f5f5;
        --text-light: #e5e5e5;
        --text-grey: #aaaaaa;
        --border: #444444;
        --shadow: rgba(0, 0, 0, 0.3);
    }
    
    body {
        background-color: var(--bg-light);
        color: var(--text-dark);
    }
    
    header,
    .value-card,
    .recipe-card,
    .achievement-card,
    .testimonial-content,
    .faq-item,
    .contact-card,
    .contact-form-container {
        background-color: #2a2a2a;
    }
    
    .about,
    .achievements,
    .faq {
        background-color: #1a1a1a;
    }
    
    .logo svg path {
        fill: var(--primary);
    }
    
    input, select, textarea {
        background-color: #333;
        color: var(--text-light);
        border-color: #444;
    }
}

.policy-page {
    padding: 5rem 0;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.policy-header {
    margin-bottom: 3rem;
    text-align: center;
}

.policy-header h1 {
    margin-bottom: 1rem;
}

.policy-header p {
    color: var(--text-grey);
    font-size: 1.1rem;
}

.policy-content h2 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.policy-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content p, .policy-content ul {
    margin-bottom: 1.5rem;
}

.policy-content ul {
    padding-left: 1.5rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.policy-content a {
    text-decoration: underline;
}

.last-updated {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-style: italic;
    color: var(--text-grey);
}

.cookies-page {
    padding: 5rem 0;
}

.cookies-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cookies-header {
    margin-bottom: 3rem;
    text-align: center;
}

.cookies-header h1 {
    margin-bottom: 1rem;
}

.cookies-header p {
    color: var(--primary-dark);
    text-align: left;
    padding: 12px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.cookies-table td {
    padding: 12px;
    border: 1px solid var(--border);
    vertical-align: top;
}

.cookies-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.last-updated {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-style: italic;
    color: var(--text-grey);
}

.cookie-settings {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cookie-toggle:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-toggle label {
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.save-preferences {
    margin-top: 2rem;
    text-align: center;
}

.success-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.success-icon svg {
    width: 60px;
    height: 60px;
    color: var(--primary);
}

.success-content {
    max-width: 600px;
}

.success-content h1 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.success-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.return-home {
    margin-top: 2rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.terms-page {
    padding: 5rem 0;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.terms-header {
    margin-bottom: 3rem;
    text-align: center;
}

.terms-header h1 {
    margin-bottom: 1rem;
}

.terms-header p {
    color: var(--text-grey);
    font-size: 1.1rem;
}

.terms-content h2 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.terms-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.terms-content p, .terms-content ul {
    margin-bottom: 1.5rem;
}

.terms-content ul {
    padding-left: 1.5rem;
}

.terms-content ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.terms-content a {
    text-decoration: underline;
}

.last-updated {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-style: italic;
    color: var(--text-grey);
}