/* Safety tips (safety.php, controllers/safety.php) and the safety links elsewhere: the quiet hint under a suspicious
   received message (ChatSafetyHintHtml() in includes/conversations.php), the link on the chat request card and the
   thanks state of the report sheet (assets/js/app-report.js). Wide screens: a public content page in the --ui colours
   of public-pages.css. Signed in on a phone: a pushed screen in the app look (tokens of app.css, dark only). */

/* ---- The page (any width) ---- */
.safety-hero {display:flex;align-items:center;gap:28px;margin:0 0 8px;}
.safety-hero img {flex:none;width:168px;height:168px;border-radius:24px;object-fit:cover;-webkit-mask-image:radial-gradient(closest-side,#000 82%,transparent);mask-image:radial-gradient(closest-side,#000 82%,transparent);}
.safety-hero h2.bold {margin:0 0 10px;}
.safety-hero p {margin:0;color:var(--ui-muted);font-size:17px;line-height:1.55;}
.safety-section {margin:30px 0 0;}
.dt_terms .safety-section h3 {display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:21px;}
.safety-icon {display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:#00aaaa29;color:#00aaaa;}
.safety-icon svg {width:20px;height:20px;}
.dt_terms_content_body.safety-body ul {margin:0;padding-left:22px;}
.dt_terms_content_body.safety-body li {margin:0 0 8px;list-style-type:disc;}
.safety-body p {margin:0 0 12px;}
.dt_terms_content_body.safety-body ul.safety-numbers {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 14px;padding:0;}
.dt_terms_content_body.safety-body .safety-numbers li {margin:0;list-style:none;}
.dt_terms_content_body.safety-body .safety-numbers a {display:flex;flex-direction:column;gap:2px;box-sizing:border-box;height:100%;min-height:44px;padding:14px 16px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-raised);color:var(--ui-text);text-decoration:none;}
.safety-numbers b {font-size:26px;line-height:1.1;letter-spacing:.02em;white-space:nowrap;color:#70d8cf;}
.safety-numbers span {color:var(--ui-muted);font-size:14px;line-height:1.4;}
.dt_terms_content_body.safety-body a.safety-contact-link {display:inline-flex;align-items:center;min-height:44px;padding:10px 22px;border-radius:24px;background:#26a69a;color:#fff;font-weight:700;text-decoration:none;}
@media(max-width:800px) {
  .safety-hero {flex-direction:column;align-items:flex-start;gap:14px;}
  .safety-hero img {width:120px;height:120px;}
  .dt_terms_content_body.safety-body ul.safety-numbers {grid-template-columns:1fr;}
  .dt_terms_content_body.safety-body .safety-numbers a {flex-direction:row;align-items:center;gap:14px;}
  .safety-numbers b {flex:none;min-width:52px;}
}

/* ---- Signed in on a phone: a pushed screen under Profil ---- */
@media(max-width:675px) {
  .member-app .safety-page .safety-nav {display:none;}
  .member-app .safety-page .dt_terms.container {width:auto;margin:0 16px 24px;font-size:16px;color:var(--app-text);}
  .member-app .safety-page .dt_terms > .row {gap:0;}
  .member-app .safety-page .dt_terms > .row > .col:last-child {padding:0;border:0;}
  .member-app .safety-hero {flex-direction:column;align-items:center;gap:6px;margin:0 0 18px;text-align:center;}
  .member-app .safety-hero img {width:min(64%,240px);height:auto;aspect-ratio:1;border-radius:28px;}
  .member-app .safety-hero h2.bold {margin:4px 0 6px;color:var(--app-text);font:800 24px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:-.02em;text-wrap:balance;}
  .member-app .safety-hero p {color:var(--app-mut);font-size:16px;line-height:1.45;}
  .member-app .safety-section {margin:0 0 12px;padding:16px;border:1px solid var(--app-line);border-radius:18px;background:var(--app-card);}
  .member-app .dt_terms .safety-section h3 {gap:12px;margin:0 0 10px;color:var(--app-text);font:800 17px/1.25 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;}
  .member-app .safety-icon {flex-basis:32px;width:32px;height:32px;border-radius:10px;background:var(--app-teal-soft);color:var(--app-teal);}
  .member-app .safety-icon svg {width:18px;height:18px;}
  .member-app .dt_terms_content_body.safety-body ul {padding:0;}
  .member-app .dt_terms_content_body.safety-body li {position:relative;margin:0 0 8px;padding-left:16px;list-style:none;color:var(--app-text);font-size:15.5px;line-height:1.45;}
  .member-app .dt_terms_content_body.safety-body li:last-child {margin-bottom:0;}
  .member-app .dt_terms_content_body.safety-body li::before {content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--app-teal);}
  .member-app .safety-body p {margin:0 0 10px;color:var(--app-text);font-size:15.5px;line-height:1.45;}
  .member-app .safety-body p:last-child {margin-bottom:0;}
  .member-app .dt_terms_content_body.safety-body a {color:#7fe3dd;}
  .member-app .dt_terms_content_body.safety-body ul.safety-numbers {gap:0;margin:2px 0 12px;border:1px solid var(--app-line);border-radius:14px;overflow:hidden;}
  .member-app .dt_terms_content_body.safety-body .safety-numbers li {padding:0;}
  .member-app .dt_terms_content_body.safety-body .safety-numbers li::before {display:none;}
  .member-app .dt_terms_content_body.safety-body .safety-numbers li + li a {border-top:1px solid var(--app-line);}
  .member-app .dt_terms_content_body.safety-body .safety-numbers a {min-height:54px;padding:10px 14px;border:0;border-radius:0;background:var(--app-raised);color:var(--app-text);}
  .member-app .safety-numbers b {min-width:48px;color:var(--app-teal);font-size:22px;}
  .member-app .safety-numbers span {color:var(--app-text);font-size:15px;}
  .member-app .safety-contact p:last-child {margin-top:14px;}
  .member-app .dt_terms_content_body.safety-body a.safety-contact-link {display:flex;justify-content:center;box-sizing:border-box;width:100%;min-height:52px;border-radius:26px;background:var(--app-water);color:#fff;box-shadow:0 10px 26px #0697db4d;font-size:16px;}
}

/* ---- The hint under a received message with typical scam wording (requests and non-matches only) ---- */
.chat-safety-hint {display:block;clear:both;max-width:78%;margin:2px 4px 8px;color:var(--ui-muted,#8a96a6);font-size:12.5px;line-height:1.4;}
.chat-safety-hint::before {content:"";display:inline-block;width:11px;height:12px;margin-right:5px;vertical-align:-1px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3.4v5.9c0 5-3.4 8.9-8 10.4-4.6-1.5-8-5.4-8-10.4V5.4z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3.4v5.9c0 5-3.4 8.9-8 10.4-4.6-1.5-8-5.4-8-10.4V5.4z'/%3E%3C/svg%3E") center/contain no-repeat;}
#message_box .chat_body_content .chat-safety-hint a {color:#26a69a;text-decoration:underline;text-underline-offset:2px;}
/* On the request card (phone only, like the card's text). */
#message_box .app-chat-request-copy .app-chat-safety {display:inline-flex;align-items:center;min-height:44px;margin:2px 0 -8px;color:#7fe3dd;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;}
@media(max-width:675px) {
  .member-app #message_box .chat_body_content .chat-safety-hint {color:var(--app-mut);}
  .member-app #message_box .chat_body_content .chat-safety-hint a {color:#7fe3dd;}
}

/* ---- Report sheet: thanks (assets/js/app-report.js) ---- */
.app-report-thanks .app-list {margin:0 0 12px;}
.app-report-thanks .app-list > a {color:var(--app-text);}
.app-report-thanks .app-list > a::after {margin-left:auto;}
