/* Slip page privacy footer line and choices sheet (dim). Loaded after slip-layout.css. */

.privacy-line {
    margin: 0.55rem 0 0;
    font-size: 0.68rem;
    line-height: 1.4;
    text-align: center;
    color: #b9c3d3;
}
.privacy-line .ccpa-icon {
    width: 24px;
    height: 11px;
    vertical-align: -2px;
    margin-right: 4px;
}
.privacy-link {
    padding: 0;
    border: 0;
    background: none;
    color: #d7deea;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    position: relative;
}
/* At least a 24 px tap target without changing the line: an invisible box around the text. */
.privacy-link::after {
    content: "";
    position: absolute;
    inset: -6px -3px;
}
.privacy-link:focus-visible,
.privacy-save:focus-visible,
.privacy-pol:focus-visible,
.privacy-switch:focus-visible {
    outline: 2px solid #8fb4ff;
    outline-offset: 2px;
}

.privacy-sheet {
    width: 100%;
    max-width: 480px;
    margin: auto auto 0;
    padding: 10px 16px max(18px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 18px 18px 0 0;
    background: #1f2430;
    color: #e8edf5;
    font: 14px/1.45 system-ui, -apple-system, sans-serif;
}
.privacy-sheet::backdrop { background: rgba(0, 0, 0, 0.5); }
.privacy-grab { width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: #4a5263; }
.privacy-sheet h2 { margin: 0 0 4px; font-size: 1rem; }
.privacy-sub { margin: 0 0 10px; font-size: 0.78rem; color: #a7b0c0; }

.privacy-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #313848;
    font-size: 0.86rem;
    cursor: pointer;
}
.privacy-opt-text small { display: block; color: #a7b0c0; font-size: 0.72rem; }

.privacy-switch {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    position: relative;
    width: 40px;
    height: 24px;
    margin: 0;
    border-radius: 12px;
    background: #3a4252;
    cursor: pointer;
    transition: background 0.15s;
}
.privacy-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cfd6e2;
    transition: left 0.15s;
}
.privacy-switch:checked { background: #2f6fd6; }
.privacy-switch:checked::after { left: 20px; background: #fff; }
.privacy-switch:disabled { opacity: 0.55; cursor: default; }

.privacy-note {
    margin: 8px 0 0;
    padding: 6px 8px;
    border: 1px solid rgba(214, 163, 92, 0.25);
    border-radius: 8px;
    background: rgba(214, 163, 92, 0.1);
    color: #c9b27a;
    font-size: 0.74rem;
}
.privacy-reload { margin: 8px 0 0; font-size: 0.72rem; color: #a7b0c0; }
.privacy-save {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    border: 0;
    border-radius: 10px;
    background: #2f6fd6;
    color: #fff;
    font: 600 0.9rem/1 system-ui, -apple-system, sans-serif;
    cursor: pointer;
}
.privacy-pol {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 0.76rem;
    color: #a7b0c0;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .privacy-switch, .privacy-switch::after { transition: none; }
}
