@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
@import url("variables.css");
@import url("layout/header.css");
@import url("layout/footer.css");

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: var(--font-body);
    background:var(--color-background);
    color:var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.container{
    width:min(var(--container-width), calc(100% - 48px));
    margin:0 auto;
}

main{
    min-height:calc(100vh - 160px);
}

img{
    max-width:100%;
    display:block;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    border:none;
    cursor:pointer;
    border-radius:var(--radius-md);
    padding:12px 18px;
    font-weight:700;
}

.btn-primary{
    background: var(--color-primary-dark);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(31, 122, 67, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover{
    background: #165432;
    box-shadow: 0 12px 28px rgba(31, 122, 67, 0.38);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-secondary{
    background: #eaf7ee;
    color: var(--color-primary-dark);
    border: 1px solid rgba(31, 122, 67, 0.16);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: #d6f0df;
    border-color: rgba(31, 122, 67, 0.28);
    transform: translateY(-1px);
}

.eyebrow{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    background:#eaf7ee;
    color:var(--color-primary-dark);
    font-size:13px;
    font-weight:700;
}

/* =============================================
   ANALYTICS CONSENT
   ============================================= */

.analytics-consent {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 2600;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: min(860px, calc(100vw - 32px));
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(11, 80, 56, 0.14);
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(24, 50, 56, 0.18), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.analytics-consent[hidden] {
    display: none;
}

.analytics-consent__text {
    min-width: 0;
}

.analytics-consent__mark {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.analytics-consent__mark img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
}

.analytics-consent__text strong {
    display: block;
    margin-bottom: 3px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1.2;
}

.analytics-consent__text p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.45;
}

.analytics-consent__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.analytics-consent__button,
.analytics-consent__link {
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.analytics-consent__button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--color-primary-dark);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(11, 80, 56, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.analytics-consent__button--ghost {
    background: #eaf3ee;
    color: var(--color-primary-dark);
    box-shadow: none;
}

.analytics-consent__link {
    min-height: 0;
    padding: 0;
    background: transparent;
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline;
}

.analytics-consent__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 80, 56, 0.28);
}

.analytics-consent__button--ghost:hover {
    box-shadow: none;
    background: #dfece5;
}

.analytics-consent__button:focus-visible,
.analytics-consent__link:focus-visible {
    outline: 2px solid var(--color-accent-teal);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .analytics-consent {
        left: 12px;
        right: 12px;
        bottom: 16px;
        transform: none;
        grid-template-columns: auto minmax(0, 1fr);
        width: auto;
        gap: 12px;
        padding: 14px;
    }

    .analytics-consent__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .analytics-consent__mark {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .analytics-consent__mark img {
        width: 46px;
        height: 46px;
    }
}
/* =============================================
   MODAL INFRASTRUCTURE
   ============================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 13, 0.62);
    backdrop-filter: blur(5px);
}

.hidden {
    display: none;
}

.modal-dialog {
    position: relative;
    max-width: 960px;
    margin: 28px auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 0;
    z-index: 2;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Entry animation */
.modal:not(.hidden) .modal-dialog {
    animation: modal-enter 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal:not(.hidden) .modal-backdrop {
    animation: backdrop-enter 0.22s ease both;
}

@keyframes modal-enter {
    from { opacity: 0; transform: scale(0.96) translateY(14px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@keyframes backdrop-enter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .modal:not(.hidden) .modal-dialog,
    .modal:not(.hidden) .modal-backdrop {
        animation: none;
    }
}

/* =============================================
   MODAL TOPBAR — TABS + CLOSE
   ============================================= */

/* Close button */
.modal-close {
    border: none;
    background: #f0f4f1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text, #243127);
    touch-action: manipulation;
    transition: background 0.18s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #daeae0;
    transform: scale(1.08);
}

.modal-close:focus-visible {
    outline: 2px solid var(--color-primary-dark, #1f7a43);
    outline-offset: 2px;
}

/* =============================================
   MODAL HEADER — TITLE
   ============================================= */

.modal-header {
    padding: 22px 34px 20px;
    border-bottom: 1px solid #edf2f0;
    flex-shrink: 0;
}

/* =============================================
   MODAL BODY — SCROLLABLE CONTENT
   ============================================= */

.modal-body {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4d4c6 transparent;
}

/* =============================================
   LEGAL CONTENT — INTRO LEAD
   ============================================= */

.legal-lead-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1f7a43 0%, #3dab6a 100%);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 14px rgba(31, 122, 67, 0.24);
}

.legal-lead-icon svg {
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-lead-text {
    font-size: 13px;
    line-height: 1.72;
    color: #445260;
    margin: 0;
}

.legal-lead-text strong {
    color: var(--color-primary-dark, #1f7a43);
    font-weight: 700;
}

/* =============================================
   LEGAL CONTENT — NUMBERED SECTIONS
   ============================================= */

.legal-section-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid #eff3f0;
}

.legal-section-item:last-of-type {
    border-bottom: none;
}

.legal-section-num {
    width: 34px;
    height: 34px;
    background: #edf7f1;
    border: 1px solid #cee8d8;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-primary-dark, #1f7a43);
    font-family: var(--font-heading, 'Plus Jakarta Sans', Arial, sans-serif);
    flex-shrink: 0;
    margin-top: 1px;
}

.legal-section-item h4 {
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text, #243127);
    font-family: var(--font-heading, 'Plus Jakarta Sans', Arial, sans-serif);
    line-height: 1.3;
}

.legal-section-item p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.78;
    color: #485664;
}

.legal-section-item p + p {
    margin-top: 9px;
}

.legal-section-item ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #485664;
    font-size: 13.5px;
    line-height: 1.78;
}

.legal-section-item li {
    margin-bottom: 4px;
}

/* Legal note */
.legal-note {
    margin-top: 24px;
    padding: 13px 16px;
    border-left: 3px solid var(--color-primary, #2d9a5a);
    background: #f5fbf7;
    border-radius: 0 10px 10px 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: #576872;
}

/* =============================================
   LEGAL CONTENT — GDPR RIGHTS GRID
   ============================================= */

.legal-rights-intro {
    margin: 24px 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text, #243127);
    font-family: var(--font-heading, 'Plus Jakarta Sans', Arial, sans-serif);
}

.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.legal-right-card {
    padding: 16px 14px;
    background: #f4fbf7;
    border: 1px solid #d4ebdf;
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.legal-right-card:hover {
    border-color: rgba(31, 122, 67, 0.30);
    box-shadow: 0 4px 14px rgba(31, 122, 67, 0.08);
}

.legal-right-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #1f7a43 0%, #3dab6a 100%);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 10px rgba(31, 122, 67, 0.20);
}

.legal-right-icon svg {
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-right-card h5 {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text, #243127);
    font-family: var(--font-heading, 'Plus Jakarta Sans', Arial, sans-serif);
}

.legal-right-card p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.52;
    color: var(--color-muted, #647267);
}

/* =============================================
   LEGAL CONTENT — COOKIES TABLE
   ============================================= */

.legal-cookies-table-wrap {
    overflow-x: auto;
    margin: 0 0 24px;
    border-radius: 12px;
    border: 1px solid #d4ebdf;
}

.legal-cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.legal-cookies-table thead tr {
    background: #edf7f1;
}

.legal-cookies-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-primary-dark, #1f7a43);
    border-bottom: 1px solid #d4ebdf;
    font-family: var(--font-heading, 'Plus Jakarta Sans', Arial, sans-serif);
}

.legal-cookies-table td {
    padding: 13px 16px;
    color: #485664;
    border-bottom: 1px solid #eef3f0;
    line-height: 1.55;
    vertical-align: middle;
}

.legal-cookies-table tbody tr:last-child td {
    border-bottom: none;
}

.legal-cookies-table tbody tr:hover td {
    background: #fafcfb;
}

.cookie-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    font-family: var(--font-heading, 'Plus Jakarta Sans', Arial, sans-serif);
}

.cookie-tech      { background: #e3f4ec; color: #1c6d3b; }
.cookie-func      { background: #e6ecfb; color: #2a4abf; }
.cookie-analytics { background: #fef3e0; color: #9b6c12; }

/* =============================================
   LEGAL CONTENT — BROWSER LINKS
   ============================================= */

.cookie-browsers-section {
    margin-top: 22px;
}

.cookie-browsers-title {
    margin: 0 0 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-text, #243127);
    font-family: var(--font-heading, 'Plus Jakarta Sans', Arial, sans-serif);
}

.cookie-browser-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-browser-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid #d4e4d8;
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text, #243127);
    text-decoration: none;
    touch-action: manipulation;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.cookie-browser-link:hover {
    border-color: var(--color-primary, #2d9a5a);
    color: var(--color-primary-dark, #1f7a43);
    background: #f0fbf4;
}

.cookie-browser-link:focus-visible {
    outline: 2px solid var(--color-primary-dark, #1f7a43);
    outline-offset: 2px;
    border-radius: 8px;
}

.cookie-browser-link svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* =============================================
   RESPONSIVE — MODAL
   ============================================= */

@media (max-width: 768px) {
    .modal-dialog {
        margin: 12px;
        border-radius: 20px;
    }

    
.modal-header {
        padding: 18px 18px 16px;
    }

    
.legal-rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-section-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .legal-section-num {
        display: none;
    }

    
}
