/* ===== Privacy & cookie policy pages ===== */
.legal-inner {
    max-width: 46rem;              /* comfy reading width */
    text-align: left;
    line-height: 1.8;
}

.legal-inner .section-title {
    text-align: center;
}

.legal-updated {
    margin: 0.5rem 0 2.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.75;
}

.legal-inner h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 2.5rem 0 0.75rem;
}

.legal-inner h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.legal-inner p {
    margin-bottom: 1rem;
}

.legal-inner ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-inner li {
    margin-bottom: 0.4rem;
}

.legal-inner a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.legal-inner code {
    padding: 0.1rem 0.4rem;
    border-radius: 0.4rem;
    background: var(--cream);
    font-size: 0.9em;
}

/* ----- The cookie table ----- */
.legal-table-wrap {
    overflow-x: auto;              /* scrolls sideways on small phones */
    margin: 1rem 0 1.5rem;
}

.legal-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--cream);
}

.legal-table th {
    background: var(--mint);
    font-weight: 600;
}

/* ===== Privacy note on the contact form ===== */
.form-note {
    font-size: 0.85rem;
    opacity: 0.85;
}

.form-note a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ----- Policies and terms links ----- */
.footer-legal ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;              /* wraps neatly on phones */
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.footer-legal a {
    position: relative;
    color: var(--cream);
    text-decoration: none;
    padding-bottom: 2px;
}

/* A soft underline that slides in on hover */
.footer-legal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--off-white);
}

.footer-legal a:hover::after,
.footer-legal a:focus-visible::after {
    transform: scaleX(1);
}

/* ----- Client Lounge button ----- */
.footer-lounge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border: 2px solid var(--cream);
    border-radius: 999px;
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-lounge:hover,
.footer-lounge:focus-visible {
    background: var(--off-white);
    color: var(--sage);
    transform: translateY(-3px);
}
