/* ============================================================
   The Haven Collection | Cookie consent
   Refined banner + preferences modal matched to the brand.
   ============================================================ */

.hc-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #1c1a17;
    color: #f5efe2;
    padding: 20px 24px;
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 110, 0.35);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
    z-index: 9997;
    font-family: 'Montserrat', sans-serif;
    animation: hc-cookie-slide-up 0.45s ease;
}

@keyframes hc-cookie-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hc-cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.hc-cookie-text {
    flex: 1 1 480px;
    min-width: 0;
}

.hc-cookie-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    color: #f5efe2;
    margin: 0 0 6px 0;
    letter-spacing: 0.01em;
}

.hc-cookie-body {
    font-size: 13px;
    line-height: 1.6;
    color: #d5cdc0;
    margin: 0;
}

.hc-cookie-body a {
    color: #c9a96e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hc-cookie-body a:hover {
    color: #d9bd8c;
}

.hc-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

.hc-cookie-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.hc-cookie-btn-primary {
    background: #c9a96e;
    color: #1c1a17;
    border-color: #c9a96e;
}

.hc-cookie-btn-primary:hover {
    background: #d9bd8c;
    border-color: #d9bd8c;
}

.hc-cookie-btn-secondary {
    background: transparent;
    color: #f5efe2;
    border-color: rgba(245, 239, 226, 0.4);
}

.hc-cookie-btn-secondary:hover {
    background: rgba(245, 239, 226, 0.08);
    border-color: rgba(245, 239, 226, 0.7);
}

/* ============================================================
   Preferences modal
   ============================================================ */

.hc-cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 10, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: hc-cookie-fade 0.3s ease;
}

@keyframes hc-cookie-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hc-cookie-modal {
    background: #faf8f5;
    color: #2c2c2c;
    border-radius: 4px;
    max-width: 520px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px 32px 28px;
    box-shadow: 0 24px 80px rgba(20, 16, 10, 0.4);
    font-family: 'Montserrat', sans-serif;
}

.hc-cookie-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a96e;
    margin: 0 0 6px 0;
}

.hc-cookie-modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #1c1a17;
    margin: 0 0 12px 0;
    letter-spacing: 0.01em;
}

.hc-cookie-modal-intro {
    font-size: 13px;
    line-height: 1.6;
    color: #6f6a62;
    margin: 0 0 24px 0;
}

.hc-cookie-row {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 18px 0;
}

.hc-cookie-row:last-of-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.hc-cookie-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}

.hc-cookie-row-head h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0;
    letter-spacing: 0.01em;
}

.hc-cookie-row-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: #6f6a62;
    margin: 0;
}

/* Toggle switch */
.hc-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.hc-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.hc-cookie-toggle-track {
    position: absolute;
    inset: 0;
    background: #c5beb4;
    border-radius: 22px;
    transition: background 0.2s ease;
}

.hc-cookie-toggle-track::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.hc-cookie-toggle input:checked + .hc-cookie-toggle-track {
    background: #c9a96e;
}

.hc-cookie-toggle input:checked + .hc-cookie-toggle-track::before {
    transform: translateX(18px);
}

.hc-cookie-toggle input:disabled + .hc-cookie-toggle-track {
    background: #c9a96e;
    opacity: 0.55;
    cursor: not-allowed;
}

.hc-cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
}

/* Footer link to reopen preferences. Matches .footer-legal a styling exactly. */
.footer-legal .hc-cookie-prefs-link,
.hc-cookie-prefs-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: inherit;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.footer-legal .hc-cookie-prefs-link:hover,
.hc-cookie-prefs-link:hover {
    color: #ffffff;
}

/* Inline "Cookie preferences" reference inside privacy.html body text */
.legal-container .hc-cookie-prefs-link {
    color: #c9a96e;
    font-size: inherit;
    font-family: inherit;
}

.legal-container .hc-cookie-prefs-link:hover {
    color: #d9bd8c;
}

/* ============================================================
   Legal pages (privacy / terms) shared styles
   ============================================================ */

.legal-page {
    padding: 120px 24px 80px;
    background: #faf8f5;
}

.legal-container {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    color: #2c2c2c;
    line-height: 1.7;
}

.legal-container h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    color: #1c1a17;
    margin: 4px 0 8px;
    letter-spacing: 0.01em;
}

.legal-container h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #1c1a17;
    margin: 40px 0 12px;
    letter-spacing: 0.01em;
}

.legal-container p,
.legal-container ul {
    font-size: 14px;
    color: #3a3833;
    margin: 0 0 14px;
}

.legal-container ul {
    padding-left: 22px;
}

.legal-container li {
    margin-bottom: 8px;
}

.legal-container .legal-meta {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a857c;
    margin-bottom: 32px;
}

.legal-container .hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a96e;
    margin-bottom: 8px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .hc-cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 18px 18px 16px;
    }
    .hc-cookie-inner {
        gap: 16px;
    }
    .hc-cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    .hc-cookie-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 12px 8px;
    }
    .hc-cookie-modal {
        padding: 24px 20px 20px;
    }
    .hc-cookie-modal-title {
        font-size: 24px;
    }
}
