/*
 * pages.css — общие стили для информационных страниц UniConvert.
 * Используется: about, privacy, terms, personal_data, contact.
 */

/* ── Карточка-контейнер ──────────────────────────────────────────────────────── */
.info-page-card {
    background: var(--card-bg, #fff);
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

/* ── Секции ─────────────────────────────────────────────────────────────────── */
.info-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.info-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6d28d9;
}
.info-section h2 i { font-size: 1rem; opacity: 0.85; }
.info-section p {
    color: var(--text-secondary, #555);
    line-height: 1.75;
    margin: 0 0 10px;
}

/* ── Список со стрелками ─────────────────────────────────────────────────────── */
.info-list {
    padding-left: 0;
    list-style: none;
    margin: 10px 0;
}
.info-list li {
    color: var(--text-secondary, #555);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.6;
}
.info-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #7c3aed;
    font-weight: 700;
}

/* ── Форма обратной связи (contact.html) ─────────────────────────────────────── */
.cf-group { margin-bottom: 20px; }
.cf-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary, #444);
    margin-bottom: 8px;
}
.cf-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    background: #fafafa;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-sizing: border-box;
    resize: vertical;
}
.cf-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
    background: #fff;
}
.cf-topics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cf-topic {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: #f9f9f9;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.cf-topic:hover { border-color: #7c3aed; color: #7c3aed; background: rgba(124,58,237,0.05); }
.cf-topic.active { border-color: #7c3aed; color: #7c3aed; background: rgba(124,58,237,0.1); }

/* ── Блок согласия ───────────────────────────────────────────────────────────── */
.cf-consent-wrap {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: rgba(124,58,237,0.04);
    border: 1.5px solid rgba(124,58,237,0.15);
    border-radius: 12px;
    transition: border-color 0.15s;
}
.cf-consent-wrap.error {
    border-color: rgba(239,68,68,0.5);
    background: rgba(239,68,68,0.04);
    animation: shake 0.35s ease;
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}
.cf-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.cf-consent-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
    border: 2px solid #c4b5fd;
    background: #fff;
    margin-top: 2px;
    transition: background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.cf-consent-label.checked .cf-consent-box {
    background: #7c3aed;
    border-color: #7c3aed;
}
.cf-consent-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary, #555);
}
.cf-consent-link {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: underline;
}
.cf-consent-hint {
    font-size: 0.78rem;
    color: #aaa;
    margin: 8px 0 0 32px;
    line-height: 1.5;
}

/* ── Кнопка отправки ─────────────────────────────────────────────────────────── */
.cf-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: 0 4px 14px rgba(109,40,217,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.cf-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(109,40,217,0.45); }
.cf-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Тёмная тема ─────────────────────────────────────────────────────────────── */
[data-theme="dark"] .info-page-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .info-section { border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .info-section p,
[data-theme="dark"] .info-list li { color: #b0b0c8; }
[data-theme="dark"] #consent-block {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.3);
}
[data-theme="dark"] .cf-input { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: #e0e0f0; }
[data-theme="dark"] .cf-input:focus { background: rgba(255,255,255,0.08); border-color: #7c3aed; }
[data-theme="dark"] .cf-topic { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #b0b0cc; }
[data-theme="dark"] .cf-topic.active { background: rgba(124,58,237,0.2); border-color: #7c3aed; color: #c4b5fd; }
[data-theme="dark"] .cf-consent-wrap { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.25); }
[data-theme="dark"] .cf-consent-box { background: rgba(255,255,255,0.08); border-color: rgba(167,139,250,0.4); }
[data-theme="dark"] .cf-consent-label.checked .cf-consent-box { background: #7c3aed; border-color: #7c3aed; }
[data-theme="dark"] .cf-consent-text { color: #b0b0c8; }

/* ── Адаптив ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .info-page-card { padding: 24px 20px; }
}
