/* reg.css — галочки согласий + модал документов */

/* ===== БЛОК ГАЛОЧЕК ===== */
.agree-block {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 18px;
}
.agree-row {
    display: flex; align-items: flex-start; gap: 11px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.agree-cb {
    width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
    border-radius: 7px; border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    display: flex; align-items: center; justify-content: center;
    transition: all .18s; position: relative;
}
.agree-cb.checked {
    background: var(--acc, #8B5CF6); border-color: var(--acc, #8B5CF6);
}
.agree-cb.checked::after {
    content: '';
    display: block; width: 5px; height: 9px;
    border: 2.5px solid #13151c; border-top: none; border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}
.agree-text {
    font-size: 13px; color: #888; line-height: 1.5; font-weight: 600;
}
.agree-link {
    background: none; border: none; padding: 0;
    color: var(--acc, #8B5CF6); font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: underline;
    text-underline-offset: 2px; font-family: inherit;
    transition: opacity .15s;
}
.agree-link:hover { opacity: .75; }

/* Кнопка неактивна пока не приняты оба */
.register-btn:disabled {
    opacity: .35; cursor: not-allowed; pointer-events: none;
}

/* ===== МОДАЛ ДОКУМЕНТА ===== */
#docModal {
    position: fixed; inset: 0; z-index: 10010;
    background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
    display: none; align-items: flex-end; justify-content: center;
    padding: 0;
}
#docModal.active { display: flex; }

#docSheet {
    background: var(--bg3, #12172A);
    border-radius: 24px 24px 0 0;
    width: 100%; max-width: 600px;
    max-height: 88vh; max-height: 88dvh;
    display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,.07);
    border-bottom: none;
    animation: docSlideUp .32s cubic-bezier(.4,0,.2,1);
}
@keyframes docSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.doc-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.doc-title {
    font-size: 16px; font-weight: 900; color: #f0f0f0;
}
.doc-close {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    color: #888; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: .18s; padding: 0;
}
.doc-close:hover { background: rgba(239,83,80,.2); color: #ef5350; }

.doc-body {
    flex: 1; overflow-y: auto; padding: 20px 22px;
    -webkit-overflow-scrolling: touch;
    color: #aaa; font-size: 13px; line-height: 1.75;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.doc-body h2 {
    font-size: 14px; font-weight: 900; color: #f0f0f0;
    margin: 18px 0 6px; letter-spacing: .2px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { margin-bottom: 8px; }
.doc-body ul { padding-left: 18px; margin-bottom: 8px; }
.doc-body li { margin-bottom: 4px; }
.doc-body strong { color: #ccc; font-weight: 800; }
.doc-body a { color: var(--acc, #8B5CF6); }
.doc-body .doc-updated {
    font-size: 11px; color: #555; margin-bottom: 16px;
}

.doc-footer {
    padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 14px);
    flex-shrink: 0; border-top: 1px solid rgba(255,255,255,.06);
}
.doc-accept-btn {
    width: 100%; padding: 15px; border-radius: 14px; border: none;
    background: linear-gradient(135deg, var(--acc, #8B5CF6), var(--acc2, #3B82F6));
    color: #13151c; font-size: 15px; font-weight: 900;
    cursor: pointer; font-family: inherit; transition: .18s;
}
.doc-accept-btn:hover { opacity: .88; }
.doc-accept-btn:active { transform: scale(.97); }

@media (min-width: 601px) {
    #docModal { align-items: center; padding: 16px; }
    #docSheet { border-radius: 24px; border-bottom: 1px solid rgba(255,255,255,.07); max-height: 85vh; }
}
