.storage-settings[hidden], .storage-settings [hidden] { display: none !important; }
.storage-settings {
    position: fixed;
    z-index: 11000;
    inset: auto 16px max(12px, env(safe-area-inset-bottom));
    margin: 0 auto;
    width: min(620px, calc(100% - 32px));
    box-sizing: border-box;
    max-height: min(75dvh, 540px);
    overflow-y: auto;
    padding: 18px 20px;
    border: 1px solid #e5d7c7;
    border-radius: 20px;
    background: #fcfaf7;
    color: #45392d;
    box-shadow: 0 10px 38px #48331c24;
    font: 400 14px/1.5 var(--font-body, Arial, sans-serif);
    text-align: left;
}
.storage-settings h2 { margin: 0 0 6px; font: 600 19px/1.3 var(--font-heading, Georgia, serif); color: #594634; }
.storage-settings p { margin: 6px 0; }
.storage-settings a, .storage-settings a:visited { color: #715b43; text-decoration: underline; text-underline-offset: 3px; }
.storage-settings__actions { display: flex; gap: 10px; margin-top: 14px; }
.storage-settings button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #d8c8b4;
    border-radius: 24px;
    background: transparent;
    color: #715b43;
    font: 600 14px/1.35 var(--font-body, Arial, sans-serif);
    cursor: pointer;
    overflow-wrap: anywhere;
}
.storage-settings #cookie-dismiss-btn { background: #806648; border-color: #806648; color: #fff; }
.storage-settings .storage-settings__configure { min-height: 44px; margin-top: 2px; border: 0; padding: 8px 0; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.storage-settings__options { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e5d7c7; }
.storage-settings__options label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.storage-settings input { flex: none; width: 20px; height: 20px; accent-color: #806648; }
.storage-settings .storage-settings__meaning { font-size: 11px; color: #74685b; margin: 10px 0 0; }
.storage-settings :focus-visible, .form-processing-note a:focus-visible { outline: 2px solid #806648; outline-offset: 4px; }
.form-processing-note { margin: 10px 0 0; color: #6f6254; font-size: 12px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.form-processing-note a, .form-processing-note a:visited { color: #715b43; }
.footer { margin: 0; padding: 24px 32px; border-radius: 0; background: #faf8f5; box-shadow: none; }
.footer .footer-content { padding-top: 0; }
.footer .footer-top { width: 44px; height: 44px; }
.footer .footer-legal-links > .footer-link { align-items: center !important; padding-block: 3px !important; }
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.footer .footer-legal-label { display: block; margin-bottom: 10px; font-size: 10px; letter-spacing: 1.5px; }
.footer .footer-content { padding-top: 16px; }
.footer .footer-legal-links { display: flex; flex-direction: column; gap: 4px; }
.footer .footer-legal-links > .footer-link,
.footer .footer-legal-links > .footer-link:first-child,
.footer .footer-legal-links > .footer-link:last-child {
    min-height: 28px;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    color: #715e49;
    white-space: normal;
    overflow-wrap: anywhere;
}
.footer .footer-legal-links > .footer-link:hover,
.footer .footer-legal-links > .footer-link:focus-visible { color: #443323; text-decoration: underline; text-underline-offset: 4px; }
.legal-container { overflow-wrap: anywhere; }
.legal-document .legal-container { max-width: 960px; margin: 24px auto; padding: 24px; color: #45392d; line-height: 1.7; }
.legal-document .legal-header { margin: 24px 0; }
.legal-document .legal-header h1 { font: 600 clamp(26px, 4vw, 38px)/1.25 var(--font-heading, Georgia, serif); color: #594634; }
.legal-document .legal-section { margin: 24px 0; }
.legal-document .legal-section h2 { font-size: 22px; line-height: 1.35; margin-bottom: 12px; }
.legal-document .legal-section p { margin: 12px 0; }
.legal-document .legal-container a, .legal-document .legal-container a:visited { color: #715b43; }
.legal-document .legal-footer-note { display: none; }
.legal-section .legal-table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-table th, .legal-table td { padding: 10px; border: 1px solid #e5d7c7; text-align: left; vertical-align: top; }
.legal-settings-button { min-height: 44px; padding: 10px 16px; border: 1px solid #b49d80; border-radius: 22px; background: #faf8f5; color: #715b43; cursor: pointer; font: inherit; }
@media (max-width: 767px) {
    .footer { margin: 0; padding: 24px 18px; }
    .footer .footer-content { padding-top: 0; }
    .footer .footer-top { margin-top: 14px; }
    .footer .footer-legal-links { gap: 0; }
    .footer .footer-legal-links > .footer-link,
    .footer .footer-legal-links > .footer-link:first-child,
    .footer .footer-legal-links > .footer-link:last-child { min-height: 40px; font-size: 13px; }
    .storage-settings { inset-inline: 10px; width: calc(100% - 20px); padding: 14px 16px; border-radius: 17px; font-size: 13px; }
    .storage-settings h2 { font-size: 18px; }
    .storage-settings__actions { gap: 8px; }
    .legal-container { padding: 16px; margin-inline: 0; }
    .legal-header h1 { font-size: clamp(24px, 6vw, 32px); }
}
@media (max-width: 1024px) {
    .footer { padding: 16px 20px; }
    .footer .footer-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 0; border-top: 0; }
    .footer .footer-brand { display: none; }
    .footer .footer-copyright { grid-column: 1; grid-row: 1; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; font-size: 12px; line-height: 1.5; text-align: left; }
    .footer .footer-legal { grid-column: 1; grid-row: 2; width: auto; margin: 0; padding: 0; border: 0; text-align: left; }
    .footer .footer-legal-label { display: none; }
    .footer .footer-legal-links { display: flex; flex-flow: row wrap; align-items: center; gap: 0 14px; }
    .footer .footer-legal-links > .footer-link,
    .footer .footer-legal-links > .footer-link:first-child,
    .footer .footer-legal-links > .footer-link:last-child { width: auto; min-height: 44px; padding: 2px 0 !important; justify-content: flex-start; font-size: 12px; line-height: 1.4; text-align: left; }
    .footer .footer-top { grid-column: 2; grid-row: 1 / 3; justify-self: end; align-self: start; margin: 0; width: 44px; height: 44px; box-shadow: none; }
    .footer .footer-top svg { width: 18px; height: 18px; }
}
@media (max-width: 767px) {
    .footer { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
    .footer .footer-content { gap: 6px 10px; }
    .footer .footer-copyright { font-size: clamp(11px, 2.85vw, 12px); }
    .footer .footer-legal { grid-column: 1 / -1; }
    .footer .footer-top { grid-row: 1; }
    .footer .footer-legal-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
    .footer .footer-legal-links > .footer-link,
    .footer .footer-legal-links > .footer-link:first-child,
    .footer .footer-legal-links > .footer-link:last-child { min-height: 44px; font-size: 12px; }
}
