/* ========================================
   OBCHODNÍ PODMÍNKY — Airbnb-style
   Mobile-first, sticky TOC, hodně bílého místa, velké tučné nadpisy
   ======================================== */

.terms {
    background: #ffffff;
    padding: 16px 0 80px;
    min-height: calc(100vh - 80px);
    color: #222222;
    font-size: 16px;
    line-height: 1.7;
}

.terms__container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* BREADCRUMB */
.terms__breadcrumb {
    font-size: 13px;
    color: #717171;
    margin: 0 0 32px;
    line-height: 1.5;
}

.terms__breadcrumb a {
    color: #717171;
    text-decoration: underline;
}

.terms__breadcrumb a:hover {
    color: #222222;
}

.terms__breadcrumb span[aria-current] {
    color: #222222;
    font-weight: 500;
}

.terms__breadcrumb span[aria-hidden] {
    margin: 0 6px;
    color: #b0b0b0;
    text-decoration: none;
}

/* HERO */
.terms__hero {
    padding: 0 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ebebeb;
}

.terms__title {
    font-size: 32px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.terms__lead {
    font-size: 17px;
    color: #484848;
    line-height: 1.55;
    margin: 0 0 20px;
    max-width: 720px;
}

.terms__lead strong {
    color: #222222;
    font-weight: 600;
}

.terms__meta {
    font-size: 14px;
    color: #717171;
    margin-bottom: 24px;
}

.terms__meta strong {
    color: #222222;
    font-weight: 600;
}

.terms__draft-warning {
    background: #fff8e1;
    border: 1px solid #f9d57b;
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 720px;
}

.terms__draft-warning strong {
    display: block;
    color: #8b5a00;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.terms__draft-warning p {
    font-size: 14px;
    color: #6b4200;
    line-height: 1.6;
    margin: 0;
}

/* LAYOUT (1 sloupec mobile, 2 sloupce desktop) */
.terms__layout {
    display: block;
}

/* SIDEBAR / TOC */
.terms__sidebar {
    margin-bottom: 40px;
}

.terms__toc {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 20px 22px;
}

.terms__toc-title {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 12px;
}

.terms__toc-list {
    list-style: decimal;
    margin: 0;
    padding-left: 22px;
    font-size: 15px;
    color: #484848;
}

.terms__toc-list li {
    padding: 4px 0;
    line-height: 1.5;
}

.terms__toc-list a {
    color: #484848;
    text-decoration: none;
}

.terms__toc-list a:hover {
    color: #222222;
    text-decoration: underline;
}

/* OBSAH */
.terms__content {
    min-width: 0;
}

/* ČLÁNKY */
.terms__article {
    margin-bottom: 48px;
    scroll-margin-top: 24px;
}

.terms__article:last-of-type {
    margin-bottom: 32px;
}

.terms__h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.terms__article p {
    font-size: 16px;
    color: #222222;
    line-height: 1.75;
    margin: 0 0 16px;
    max-width: 720px;
}

.terms__article ul,
.terms__article ol {
    margin: 14px 0 18px;
    padding-left: 24px;
    color: #222222;
    font-size: 16px;
    line-height: 1.75;
    max-width: 720px;
}

.terms__article ul li,
.terms__article ol li {
    margin-bottom: 8px;
}

.terms__article strong {
    color: #222222;
    font-weight: 600;
}

.terms__article a {
    color: #222222;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms__article a:hover {
    color: #717171;
}

/* PROVOZOVATEL — světlý box bez výrazného rámu */
.terms__provider {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 16px 0 20px;
    max-width: 600px;
}

.terms__provider p {
    margin: 0 0 10px;
    line-height: 1.7;
    font-size: 15.5px;
}

.terms__provider p:last-child {
    margin: 0;
    color: #717171;
    font-style: italic;
    font-size: 14px;
}

.terms__provider strong {
    color: #222222;
    font-weight: 600;
}

/* DEFINICE — prostý seznam */
.terms__definitions {
    list-style: disc !important;
    padding-left: 24px !important;
}

.terms__definitions li {
    margin-bottom: 10px !important;
    line-height: 1.75;
}

.terms__definitions strong {
    color: #222222;
    font-weight: 600;
}

/* KONTAKT */
.terms__contact {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15.5px;
    line-height: 1.7;
    color: #484848;
    margin: 0 0 16px;
    max-width: 600px;
}

/* PATIČKA článku */
.terms__footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #ebebeb;
}

.terms__footer p {
    font-size: 13px;
    color: #717171;
    margin: 0 0 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.terms__footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms__footer li {
    padding: 5px 0;
}

.terms__footer a {
    color: #222222;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 16px;
}

.terms__footer a:hover {
    color: #717171;
}

/* ========================================
   TABLET — od 768px
   ======================================== */
@media (min-width: 768px) {
    .terms {
        padding: 32px 0 100px;
    }

    .terms__title {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .terms__lead {
        font-size: 18px;
    }

    .terms__hero {
        padding-bottom: 48px;
        margin-bottom: 48px;
    }

    .terms__h2 {
        font-size: 26px;
    }

    .terms__article p,
    .terms__article ul,
    .terms__article ol {
        font-size: 16.5px;
    }
}

/* ========================================
   DESKTOP s 2-sloupcovým layoutem — od 1024px
   ======================================== */
@media (min-width: 1024px) {
    .terms__container {
        padding: 0 40px;
    }

    .terms__title {
        font-size: 48px;
    }

    .terms__layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 64px;
        align-items: start;
    }

    /* Sticky sidebar */
    .terms__sidebar {
        position: sticky;
        top: 24px;
        margin-bottom: 0;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }

    .terms__toc {
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .terms__toc-list {
        font-size: 14.5px;
    }

    /* Limit šířky obsahu pro čitelnost */
    .terms__content {
        max-width: 720px;
    }

    .terms__article {
        margin-bottom: 56px;
    }

    .terms__h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .terms__article p,
    .terms__article ul,
    .terms__article ol {
        font-size: 17px;
    }
}
