/* ==========================================
   Kahvalti Masasi Rehberi
   Theme: Sabah Isigi + Cini — v2
   ========================================== */

:root {
    /* Warm morning palette */
    --bg: #fdfaf6;
    --bg-card: #ffffff;
    --bg-warm: #f7f0e6;
    --bg-warm-deep: #efe4d4;
    --bg-accent: #f0f7f9;

    /* Primary — warm terracotta */
    --primary: #c0784a;
    --primary-hover: #a8623a;
    --primary-light: #e8c9af;
    --primary-pale: #faf0e6;

    /* Secondary — deep teal (cini) */
    --teal: #1a6b5a;
    --teal-hover: #145847;
    --teal-light: #d0e8e2;
    --teal-pale: #edf7f4;

    /* Neutral */
    --text: #2c2418;
    --text-secondary: #5c5347;
    --text-muted: #9a9088;
    --border: #e5ddd2;
    --border-light: #f0ebe3;

    --white: #ffffff;
    --success: #3a7d44;
    --error: #c03030;
    --focus: #1a6b5a;

    /* Type */
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;

    /* Spacing scale */
    --s1: 0.25rem;
    --s2: 0.5rem;
    --s3: 0.75rem;
    --s4: 1rem;
    --s5: 1.25rem;
    --s6: 1.5rem;
    --s8: 2rem;
    --s10: 2.5rem;
    --s12: 3rem;
    --s16: 4rem;
    --s20: 5rem;

    --radius: 6px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    --shadow-xs: 0 1px 2px rgba(44,36,24,.05);
    --shadow-sm: 0 1px 4px rgba(44,36,24,.07), 0 2px 8px rgba(44,36,24,.04);
    --shadow-md: 0 4px 16px rgba(44,36,24,.08), 0 1px 4px rgba(44,36,24,.04);
    --shadow-lg: 0 8px 32px rgba(44,36,24,.1), 0 2px 8px rgba(44,36,24,.05);

    --ease: cubic-bezier(.4,0,.2,1);
    --header-h: 60px;
    --max-w: 1140px;
    --content-w: 1012px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--teal);
    text-decoration-color: var(--teal-light);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--teal-hover); text-decoration-color: var(--teal-hover); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

ul, ol { padding-left: var(--s6); }

/* === SKIP LINK === */
.skip-link {
    position: absolute; top: -100%; left: var(--s4);
    background: var(--teal); color: var(--white);
    padding: var(--s2) var(--s4); border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000; text-decoration: none; font-size: .875rem; font-weight: 500;
}
.skip-link:focus { top: 0; }

/* === CONTAINER === */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s6); }

/* === HEADER === */
.site-header {
    background: var(--white);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    height: var(--header-h);
}
header.site-header .container { max-width: var(--max-w); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); gap: var(--s4);
}
.site-logo {
    display: flex; align-items: center; gap: var(--s3);
    text-decoration: none; color: var(--text); font-weight: 700;
    font-size: 1.05rem; letter-spacing: -.01em; flex-shrink: 0;
}
.site-logo:hover { color: var(--primary); }
.logo-icon svg { display: block; }
.logo-text { white-space: nowrap; }

/* Nav — mobile first: hidden */
.main-nav { display: none; }
.main-nav.is-open {
    display: block; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); z-index: 999;
    max-height: 75vh; overflow-y: auto;
}
.nav-list { list-style: none; padding: var(--s3); margin: 0; }
.main-nav.is-open .nav-item a {
    display: block; padding: var(--s3) var(--s4);
    text-decoration: none; color: var(--text-secondary);
    border-radius: var(--radius); font-size: .925rem; font-weight: 450;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.main-nav.is-open .nav-item a:hover,
.main-nav.is-open .nav-item.active a {
    background: var(--bg-warm); color: var(--teal);
}
.main-nav.is-open .nav-item.active a { font-weight: 600; }

/* Hamburger */
.menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: none; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; transition: border-color .15s var(--ease);
}
.menu-toggle:hover { border-color: var(--text-muted); }
.menu-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hamburger { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.hamburger span {
    display: block; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 1280px) {
    .menu-toggle { display: none; }
    .main-nav {
        display: flex; position: static;
        background: transparent; border: none; box-shadow: none;
    }
    .nav-list {
        display: flex; gap: 2px; align-items: center;
        padding: 0; margin: 0; flex-wrap: wrap; justify-content: flex-end;
    }
    .nav-item a {
        display: block; padding: var(--s1) var(--s2);
        text-decoration: none; color: var(--text-secondary);
        font-size: .78rem; font-weight: 450; border-radius: var(--radius);
        white-space: nowrap; position: relative;
        transition: color .15s var(--ease), background .15s var(--ease);
    }
    .nav-item a:hover { color: var(--teal); background: var(--teal-pale); }
    .nav-item.active a {
        color: var(--teal); background: var(--teal-pale); font-weight: 600;
    }
    .nav-item.active a::after {
        content: ''; position: absolute; bottom: -1px; left: var(--s2); right: var(--s2);
        height: 2px; background: var(--teal); border-radius: 2px;
    }
}
@media (min-width: 1440px) {
    .nav-item a { padding: var(--s1) var(--s3); font-size: .8rem; }
    .nav-item.active a::after { left: var(--s3); right: var(--s3); }
}

/* === BREADCRUMBS === */
.breadcrumbs { padding: var(--s3) 0; }
.breadcrumbs ol {
    display: flex; flex-wrap: wrap; list-style: none;
    padding: 0; font-size: .82rem; color: var(--text-muted);
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after {
    content: '/'; margin: 0 var(--s2); color: var(--border); font-weight: 300;
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--text); font-weight: 700; }

h1 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin-bottom: var(--s6);
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    margin-top: var(--s10); margin-bottom: var(--s4);
    color: var(--text);
    display: flex; align-items: center; gap: var(--s3);
}
h2::before {
    content: ''; display: inline-block;
    width: 4px; height: 1.2em; background: var(--primary);
    border-radius: 2px; flex-shrink: 0;
}

h3 {
    font-size: 1.1rem; margin-top: var(--s8); margin-bottom: var(--s3);
    color: var(--text-secondary); font-weight: 600;
}

p { margin-bottom: var(--s4); }

blockquote {
    border-left: 3px solid var(--primary-light); padding: var(--s4) var(--s6);
    margin: var(--s6) 0; background: var(--primary-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary); font-family: var(--font-serif); font-style: italic;
}

/* === HERO (Homepage) === */
.page-home .hero {
    background:
        linear-gradient(170deg, var(--bg) 0%, var(--bg-warm) 35%, var(--primary-pale) 70%, var(--teal-pale) 100%);
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
    text-align: center; position: relative; overflow: hidden;
}
.page-home .hero::before {
    content: ''; position: absolute; inset: 0; opacity: .3; pointer-events: none;
    background-image:
        radial-gradient(ellipse 600px 400px at 15% 85%, var(--primary-light) 0, transparent 70%),
        radial-gradient(ellipse 500px 350px at 85% 15%, var(--teal-light) 0, transparent 70%),
        radial-gradient(circle 200px at 50% 50%, rgba(255,255,255,.5) 0, transparent 100%);
}
.page-home .hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to top, var(--bg), transparent); pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--text); letter-spacing: -.03em;
    margin-bottom: var(--s4);
}
.hero .subtitle {
    font-size: clamp(.95rem, 2.5vw, 1.12rem);
    color: var(--text-secondary); max-width: 600px;
    margin: 0 auto var(--s8); line-height: 1.85;
}

/* Quick links pills */
.quick-links {
    display: flex; flex-wrap: wrap; gap: var(--s3);
    justify-content: center; margin-top: var(--s6);
    padding: 0 var(--s4);
}
.quick-link {
    display: inline-flex; align-items: center; gap: var(--s2);
    padding: var(--s3) var(--s6);
    background: rgba(255,255,255,.85); color: var(--text);
    text-decoration: none; border-radius: 50px;
    font-size: .875rem; font-weight: 500;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: all .2s var(--ease);
}
.quick-link:hover {
    background: var(--teal); color: var(--white);
    border-color: var(--teal); box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* === SECTIONS GRID (Homepage) === */
.home-discover { padding: var(--s12) 0 var(--s8); }
.home-discover .container { max-width: var(--max-w); }
.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5); padding: var(--s6) 0;
}
@media (max-width: 960px) {
    .sections-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .sections-grid { grid-template-columns: 1fr; }
}
.section-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--s5) var(--s6) var(--s5);
    position: relative; overflow: hidden;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.section-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.section-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.section-card:hover::before { transform: scaleX(1); }
.section-card h3 { margin-top: 0; margin-bottom: var(--s2); font-size: 1.05rem; }
.section-card h3 a {
    text-decoration: none; color: var(--text);
    transition: color .15s var(--ease);
}
.section-card h3 a:hover { color: var(--teal); }
.section-card p { color: var(--text-secondary); font-size: .88rem; margin-bottom: 0; line-height: 1.65; }


/* === PAGE CONTENT (Article pages) === */
.page-content { padding: 0; }
.page-content .container { max-width: var(--content-w); }
.page-content article {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--s12) clamp(1.5rem, 5vw, 3rem);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
}

/* === IMAGE + TEXT FLOW === */
.image-placeholder {
    background: var(--bg-warm); border: 1px dashed var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin: var(--s6) 0;
}
.image-placeholder svg { width: 100%; height: auto; }

.article-img {
    border-radius: var(--radius-lg); overflow: hidden;
    margin: var(--s6) 0; border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}
.article-img img, .article-img .image-placeholder { border-radius: var(--radius-lg); margin: 0; border: none; box-shadow: none; }
.article-img-right {
    float: right; margin: var(--s1) 0 var(--s5) var(--s6);
    max-width: 340px; width: 42%;
}
.article-img-left {
    float: left; margin: var(--s1) var(--s6) var(--s5) 0;
    max-width: 340px; width: 42%;
}
.article-img-center { max-width: 560px; margin: var(--s6) auto; clear: both; }
.clearfix::after { content: ''; display: table; clear: both; }
@media (max-width: 640px) {
    .article-img-right, .article-img-left {
        float: none; max-width: 100%; width: 100%; margin: var(--s4) 0;
    }
}

/* === TABS === */
.tabs { margin: var(--s8) 0; clear: both; }
.tab-buttons {
    display: flex; gap: 0;
    border-bottom: 2px solid var(--border-light); margin-bottom: var(--s6);
}
.tab-btn {
    padding: var(--s3) var(--s6); background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    cursor: pointer; font-size: .95rem; font-weight: 500;
    color: var(--text-muted);
    transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.tab-btn:hover { color: var(--text); background: var(--bg-warm); }
.tab-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tab-btn[aria-selected="true"] {
    color: var(--teal); border-bottom-color: var(--teal); font-weight: 600;
    background: var(--teal-pale);
}
.tab-panel { display: none; }
.tab-panel[aria-hidden="false"], .tab-panel.is-active {
    display: block; animation: tabFade .3s var(--ease);
}
@keyframes tabFade { from { opacity: 0; } to { opacity: 1; } }

/* === ACCORDION / FAQ === */
.accordion { margin: var(--s6) 0; }
.accordion-item {
    border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    margin-bottom: var(--s3); background: var(--bg-card); overflow: hidden;
    transition: box-shadow .2s var(--ease);
}
.accordion-item:has(.accordion-trigger[aria-expanded="true"]) { box-shadow: var(--shadow-sm); }
.accordion-item h2 { margin: 0; display: block; }
.accordion-item h2::before { display: none; }
.accordion-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: var(--s5) var(--s6); background: none; border: none;
    font-size: 1rem; font-weight: 600; color: var(--text);
    cursor: pointer; text-align: left;
    transition: background .15s var(--ease);
}
.accordion-trigger:hover { background: var(--bg-warm); }
.accordion-trigger:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.accordion-icon {
    flex-shrink: 0; width: 18px; height: 18px;
    color: var(--primary); transition: transform .25s var(--ease);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-panel {
    overflow: hidden; height: 0;
    padding: 0 var(--s6); color: var(--text-secondary); line-height: 1.8;
    transition: height .35s var(--ease);
}
.accordion-panel > p:last-child { margin-bottom: var(--s6); }

/* === TIP / WARNING BOXES === */
.tip-box {
    background: var(--teal-pale); border-left: 4px solid var(--teal);
    padding: var(--s5) var(--s6); border-radius: 0 var(--radius) var(--radius) 0;
    margin: var(--s6) 0; clear: both;
}
.tip-box p:last-child { margin-bottom: 0; }

.warning-box {
    background: #fef5e7; border-left: 4px solid var(--primary);
    padding: var(--s5) var(--s6); border-radius: 0 var(--radius) var(--radius) 0;
    margin: var(--s6) 0; clear: both;
}
.warning-box p:last-child { margin-bottom: 0; }

/* === RELATED CONTENT === */
.related-content {
    margin-top: var(--s10); padding-top: var(--s8);
    border-top: 1px solid var(--border-light); clear: both;
}
.related-content h2 { font-size: 1.1rem; margin-top: 0; }
.related-content h2::before { background: var(--teal); height: 1em; }
.related-links {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--s3); list-style: none; padding: 0;
}
.related-links li { padding: 0; }
.related-links a {
    display: flex; align-items: center; gap: var(--s3);
    padding: var(--s3) var(--s4); background: var(--bg-warm);
    border-radius: var(--radius); text-decoration: none;
    color: var(--text); font-size: .9rem; font-weight: 500;
    border: 1px solid transparent;
    transition: all .15s var(--ease);
}
.related-links a::before {
    content: '\203A'; display: block; flex-shrink: 0;
    font-size: 1.15em; font-weight: 700; color: var(--primary);
    line-height: 1; transition: transform .15s var(--ease);
}
.related-links a:hover::before { transform: translateX(3px); }
.related-links a:hover {
    background: var(--teal-pale); border-color: var(--teal-light);
    color: var(--teal); transform: translateX(3px);
}
.related-links a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* === CONTACT / FORM === */
.contact-info {
    background: var(--bg-warm); border-radius: var(--radius-lg);
    padding: var(--s6) var(--s8); margin-bottom: var(--s8);
    border: 1px solid var(--border-light);
}
.contact-info dt {
    font-weight: 700; color: var(--text); margin-top: var(--s5);
    font-size: .9rem; text-transform: uppercase; letter-spacing: .03em;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin-left: 0; color: var(--text-secondary); padding-top: var(--s1); }

.form-group { margin-bottom: var(--s5); }
.form-group label {
    display: block; font-weight: 600; margin-bottom: var(--s2);
    color: var(--text); font-size: .9rem;
}
.form-group .required { color: var(--error); margin-left: 2px; }
.form-group .text-muted { color: var(--text-muted); font-weight: 400; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%; padding: var(--s3) var(--s4);
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-family: var(--font-body); font-size: .95rem;
    color: var(--text); background: var(--white);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,107,90,.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input.error, .form-group textarea.error { border-color: var(--error); }

.form-error {
    color: var(--error); font-size: .82rem; margin-top: var(--s1);
    display: none; font-weight: 500;
}
.form-error.visible { display: block; }

.form-checkbox { display: flex; align-items: flex-start; gap: var(--s3); }
.form-checkbox input[type="checkbox"] { margin-top: 5px; accent-color: var(--teal); }
.form-checkbox label { font-size: .88rem; font-weight: 400; line-height: 1.5; }

.honeypot-field {
    position: absolute; left: -9999px; opacity: 0;
    height: 0; width: 0; overflow: hidden;
}

.btn-submit {
    display: inline-flex; align-items: center; gap: var(--s2);
    font-size: .95rem; font-weight: 600;
    padding: var(--s3) var(--s8);
    background: var(--teal); color: var(--white); border: none;
    border-radius: var(--radius); cursor: pointer;
    transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-submit:hover { background: var(--teal-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-submit:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.form-message {
    padding: var(--s4) var(--s5); border-radius: var(--radius);
    margin-bottom: var(--s6); font-size: .925rem; font-weight: 500; display: none;
}
.form-message.success { display: block; background: #e7f5ea; border: 1px solid var(--success); color: var(--success); }
.form-message.error { display: block; background: #fde8e8; border: 1px solid var(--error); color: var(--error); }

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    padding: var(--s5) var(--s4); z-index: 9999;
    box-shadow: 0 -8px 32px rgba(44,36,24,.12);
    transform: translateY(100%); transition: transform .4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .container { max-width: 860px; }
.cookie-text {
    font-size: .875rem; color: var(--text-secondary);
    margin-bottom: var(--s4); line-height: 1.6;
}
.cookie-text a { color: var(--teal); font-weight: 500; }

.cookie-buttons { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cookie-btn {
    font-size: .875rem; font-weight: 600;
    padding: var(--s2) var(--s5); border-radius: var(--radius);
    cursor: pointer; transition: all .15s var(--ease); border: 1.5px solid var(--border);
}
.cookie-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cookie-btn--accept {
    background: var(--teal); color: var(--white); border-color: var(--teal);
}
.cookie-btn--accept:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.cookie-btn--reject { background: var(--white); color: var(--text); }
.cookie-btn--reject:hover { background: var(--bg-warm); border-color: var(--text-muted); }
.cookie-btn--settings { background: var(--white); color: var(--text-secondary); }
.cookie-btn--settings:hover { background: var(--bg-warm); }

.cookie-settings {
    display: none; margin-top: var(--s4); padding-top: var(--s4);
    border-top: 1px solid var(--border-light);
}
.cookie-settings.is-visible { display: block; }
.cookie-category {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--s3) 0; border-bottom: 1px solid var(--border-light);
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category-info { flex: 1; }
.cookie-category-name { font-weight: 600; font-size: .875rem; color: var(--text); }
.cookie-category-desc { font-size: .78rem; color: var(--text-muted); }

.cookie-toggle { position: relative; width: 42px; height: 22px; flex-shrink: 0; margin-left: var(--s4); }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
    position: absolute; inset: 0; background: var(--border);
    border-radius: 11px; cursor: pointer; transition: background .2s var(--ease);
}
.cookie-toggle-slider::before {
    content: ''; position: absolute; height: 16px; width: 16px;
    left: 3px; bottom: 3px; background: var(--white); border-radius: 50%;
    transition: transform .2s var(--ease);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--teal); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: .45; cursor: not-allowed; }
.cookie-toggle input:focus-visible + .cookie-toggle-slider { outline: 2px solid var(--focus); outline-offset: 2px; }
.cookie-save-btn { margin-top: var(--s4); }

.btn-cookie-reopen {
    font-size: .9rem; font-weight: 600;
    padding: var(--s3) var(--s6);
    background: var(--primary); color: var(--white); border: none;
    border-radius: var(--radius); cursor: pointer;
    transition: background .15s var(--ease);
}
.btn-cookie-reopen:hover { background: var(--primary-hover); }
.btn-cookie-reopen:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* === FOOTER === */
.site-footer {
    background: var(--text); color: rgba(255,255,255,.7);
    padding: var(--s12) 0 var(--s6); margin-top: auto;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr repeat(2, 1fr) 1fr;
    gap: var(--s8); margin-bottom: var(--s8);
}
.footer-brand {
    font-weight: 700; font-size: 1.1rem;
    color: var(--white); margin-bottom: var(--s3);
}
.footer-desc { font-size: .84rem; line-height: 1.65; color: rgba(255,255,255,.5); margin-bottom: 0; }
.footer-heading {
    font-weight: 700; font-size: .75rem; color: var(--primary-light);
    margin-bottom: var(--s4); text-transform: uppercase; letter-spacing: .08em;
}
.footer-links ul, .footer-contact ul { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: var(--s2); }
.footer-links a, .footer-contact a {
    color: rgba(255,255,255,.6); text-decoration: none; font-size: .84rem;
    transition: color .15s var(--ease);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact li { font-size: .84rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: var(--s5);
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: var(--s4);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s5); }
.footer-legal a {
    color: rgba(255,255,255,.4); text-decoration: none; font-size: .78rem;
    transition: color .15s var(--ease);
}
.footer-legal a:hover { color: rgba(255,255,255,.8); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.35); margin: 0; }

/* === LEGAL PAGES === */
.page-legal article { font-size: .94rem; }
.page-legal h2 { font-size: 1.25rem; }
.page-legal h3 { font-size: 1.05rem; }
.page-legal article ul { margin-bottom: var(--s4); }
.page-legal article li { margin-bottom: var(--s2); }

/* === UTILITY === */
.text-center { text-align: center; }
h2.text-center { justify-content: center; }
h2.text-center::before { display: none; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .related-links { grid-template-columns: 1fr; }
    .contact-info { padding: var(--s5); }
}

@media (max-width: 480px) {
    .cookie-buttons { flex-direction: column; }
    .cookie-btn { text-align: center; }
    .logo-text { font-size: .9rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .quick-links { gap: var(--s2); }
    .quick-link { font-size: .82rem; padding: var(--s2) var(--s4); }
}
