.legal-bases-modal .modal-title { display: flex; align-items: center; gap: 10px; }
.legal-bases-list { margin: 0; padding-left: 22px; }
.legal-bases-item { padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.legal-bases-item:last-child { border-bottom: 0; }
.legal-bases-link { color: #1f3b70; font-weight: 500; word-break: break-word; }
.legal-bases-link:hover { color: #518feb; text-decoration: underline; }
.legal-bases-link .ui-icon { width: 14px; height: 14px; margin-left: 4px; vertical-align: -.15em; opacity: .75; }
.legal-bases-meta { margin-top: 4px; font-size: 13px; color: #6c757d; display: flex; flex-wrap: wrap; gap: 4px 16px; }

.doc-comments { margin: 0 0 48px; padding: 24px; background: #fff; border: 1px solid #ebebeb; border-radius: 8px; }
.doc-comments-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.doc-comments-title { font-size: 20px; color: #000; margin: 0; }
.doc-rating-summary { display: flex; align-items: center; gap: 8px; }
.doc-rating-average { font-size: 18px; font-weight: 600; color: #222; }
.doc-rating-count { color: #6c757d; font-size: 14px; }
.doc-stars { display: inline-flex; gap: 2px; color: #d6dae0; }
.doc-stars .fa-star.on { color: #F5A524; text-shadow: 0 1px 4px rgba(245, 165, 36, .35); }
.doc-stars-sm { font-size: 12px; }
.doc-stars-input { gap: 0; }
.doc-star-btn { background: none; border: 0; padding: 2px 3px; font-size: 22px; line-height: 1; color: #d6dae0; cursor: pointer; transition: color .15s ease, transform .15s ease; }
.doc-star-btn:hover { transform: scale(1.12); }
.doc-star-btn.on, .doc-star-btn.hover { color: #F5A524; text-shadow: 0 2px 6px rgba(245, 165, 36, .35); }
.doc-star-btn:focus { outline: none; }
.doc-star-btn:focus-visible { outline: 2px solid #0054D1; outline-offset: 1px; border-radius: 4px; }
.doc-comment-guest { padding: 14px 16px; background: #f5f8fd; border-radius: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; color: #444; }
.doc-comment-form { margin-bottom: 24px; }
.doc-comment-form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.doc-comment-label { margin: 0; color: #444; }
.doc-comment-textarea { resize: vertical; min-height: 84px; }
.doc-comment-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.doc-comment-alert { display: none; margin-top: 10px; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.doc-comment-alert.is-success { background: #e8f6ec; color: #1e7b34; }
.doc-comment-alert.is-error { background: #fdecec; color: #b42318; }
.doc-comment { padding: 14px 0; border-top: 1px solid #eef1f5; }
.doc-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.doc-comment-avatar { width: 30px; height: 30px; border-radius: 50%; background: #518feb; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.doc-comment-author { font-weight: 600; color: #222; }
.doc-comment-date { color: #8a94a3; font-size: 13px; margin-left: auto; }
.doc-comment-text { color: #333; white-space: normal; word-break: break-word; }
.doc-comment-reply { margin: 10px 0 0 40px; padding: 10px 14px; background: #f5f8fd; border-left: 3px solid #518feb; border-radius: 4px; }
.doc-comment-reply-head { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #1f3b70; font-size: 14px; margin-bottom: 4px; }
.doc-comment-reply-text { color: #333; word-break: break-word; }
.doc-comments-empty { margin: 8px 0 0; }
.js-comments-more { margin-top: 12px; }

@media (max-width: 576px) {
    .doc-comments { padding: 16px; }
    .doc-comment-reply { margin-left: 12px; }
    .doc-comment-date { margin-left: 0; }
}
