/* Patička sdílí paletu webu a zobrazuje identifikační údaje a právní odkazy. */
.contact.section {
    padding: 0;
    background: var(--navy);
}

/* Šířku patičky omezuje celý web; panel má vlastní vnitřní odsazení. */
.contact > .container {
    width: 100%;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at left top, rgba(255, 122, 0, 0.14), transparent 28%),
        linear-gradient(135deg, #06111f 0%, #0d2944 100%);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    color: #fff;
}

.contact-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.45fr 1.3fr;
    gap: 28px;
    align-items: center;
    padding: 16px 34px;
    border-top: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.78);
    font-size: var(--font-size-base);
}

.contact-meta p {
    margin: 0;
}

.contact-qr {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    justify-self: center;
    padding: 0;
    background: transparent;
}

.contact-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-copy {
    min-width: 0;
    justify-self: end;
    text-align: right;
}

/* Rozbalený právní text využije celou šířku místo úzkého sloupce copyrightu. */
.contact-copy:has(.brand-rights[open]) {
    grid-column: 1 / -1;
    justify-self: stretch;
}

/* Odkaz na neveřejnou statistiku zůstává vzhledově součástí copyrightu. */
.copyright-stats-link,
.copyright-stats-link:hover,
.copyright-stats-link:focus {
    color: inherit;
    text-decoration: none;
    cursor: inherit;
}


/* Odkaz následuje přímo pod copyrightem; obsah zůstává ve výchozím stavu skrytý. */
.brand-rights { min-width: 0; margin-top: 8px; color: rgba(255,255,255,0.78); font-size: var(--font-size-base); line-height: 1.65; }
.brand-rights summary { color: var(--heading); font-size: var(--font-size-base); font-weight: 700; cursor: pointer; }
.brand-rights[open] summary { margin-bottom: 8px; }
.brand-rights p { margin: 6px 0 0; text-align: left; }
.brand-rights a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.brand-rights a:hover { color: var(--accent); }

.privacy-strip {
    grid-column: 1 / -1;
    min-width: 0;
    border-top: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.78);
}

.privacy-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 0;
    padding: 18px 34px;
    font-size: var(--font-size-base);
}

.privacy-strip__links,
.privacy-strip__item {
    display: inline-flex;
    align-items: center;
}

.privacy-strip__links { max-width: 100%; }
.privacy-strip__item { flex-shrink: 0; }
.privacy-strip__separator { margin-inline: 16px; color: rgba(255,255,255,0.45); }

.privacy-strip a,
.privacy-settings {
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.privacy-settings { border: 0; padding: 0; background: none; cursor: pointer; }
.privacy-strip a:hover,
.privacy-settings:hover { color: #ff9c40; }
.privacy-strip :focus-visible { outline: 3px solid #ef7a12; outline-offset: 4px; }

/* Bez JavaScriptu nezůstane za právními odkazy osamocený oddělovač. */
.privacy-strip__settings:has([hidden]),
.privacy-strip [hidden] { display: none !important; }


/* Na menších displejích se údaje a právní odkazy skládají pod sebe. */
@media (max-width: 1100px) {
    .contact-meta { grid-template-columns: 1fr 1.4fr 112px; gap: 20px; padding-inline: 24px; }
    .contact-copy { grid-column: 1 / -1; justify-self: center; text-align: center; }
}
@media (max-width: 600px) {
    .contact-meta { grid-template-columns: minmax(0, 1fr) 92px; gap: 16px; padding: 20px; }
    .contact-meta > div:nth-child(2) { grid-column: 1; }
    .contact-qr { grid-column: 2; grid-row: 1 / span 2; width: 92px; height: 92px; }
    .contact-copy { justify-self: start; text-align: left; }
    .privacy-strip__inner { padding: 16px 20px; gap: 10px; justify-content: flex-start; }
    .privacy-strip__links { align-items: flex-start; flex-direction: column; gap: 10px; }
    .privacy-strip__separator { display: none; }
}
