/* ============================================================
   TARH PLATFORM — COMPONENTS STYLESHEET
   Shared page, FAQ, footer, contact and legal components.
   ============================================================ */

/* ------------------------------------------------------------
   1. INNER PAGE HERO
   ------------------------------------------------------------ */
.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 80px;
  min-height: 410px;
  background: radial-gradient(ellipse at 17% 20%, rgba(58, 209, 192, 0.14), transparent 45%),
              linear-gradient(120deg, #071421, #0b1d2b 70%, #103235);
}

.inner-hero:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -115px;
  bottom: -230px;
  border: 1px solid #63e0ce26;
  border-radius: 50%;
  box-shadow: 0 0 0 30px #63e0ce08, 0 0 0 65px #63e0ce05;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.page-title {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.22;
  letter-spacing: -2px;
  margin: 18px 0 18px;
}

.inner-hero .hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
}

/* ------------------------------------------------------------
   2. VALUES GRID (about page)
   ------------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.value-card {
  position: relative;
  background: #fff;
  border: 1px solid #dce8e6;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 18px 48px #0a32300a;
}

.value-card p {
  margin: 0;
  color: #53656e;
  font-size: 16px;
  line-height: 2;
}

.value-index {
  position: absolute;
  left: 24px;
  top: 20px;
  color: #acd9d3;
  font-size: 13px;
  font-weight: 800;
}

/* ------------------------------------------------------------
   3. PAGE CALLOUT & BULLETS
   ------------------------------------------------------------ */
.page-callout {
  padding: 30px;
  border: 1px solid #63e0ce35;
  border-radius: 24px;
  background: linear-gradient(145deg, #102a3b, #0a1a27);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 28px 70px #0002;
}

.page-callout strong {
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 6px;
}

.page-callout span {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  background: #ffffff06;
  color: #d7e4e9;
  font-size: 14px;
}

.page-callout i {
  font-style: normal;
  color: var(--teal);
  padding-right: 18px;
  line-height: 0.65;
}

.page-bullets {
  display: grid;
  gap: 7px;
  margin-top: 26px;
  color: #c2d1d7;
}

.page-bullets p {
  margin: 0;
  display: flex;
  gap: 11px;
  align-items: center;
}

.page-bullets span {
  color: var(--teal);
}

/* ------------------------------------------------------------
   4. FEATURE GRID
   ------------------------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px;
  border: 1px solid #dce7e6;
  border-radius: 20px;
  background: #fff;
  min-height: 200px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #72cfc2;
  box-shadow: 0 16px 36px #163d390e;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #e1f2ef;
  color: #128f83;
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: #0b1c2c;
}

.feature-card p {
  font-size: 13px;
  color: #62747d;
  line-height: 1.9;
  margin: 0;
}

/* ------------------------------------------------------------
   5. FAQ PAGE (search + full list)
   ------------------------------------------------------------ */
.faq-page-container {
  max-width: 900px;
}

.faq-search-label {
  display: block;
  font-weight: 800;
  margin: 0 0 10px;
  color: #253a45;
}

.faq-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cbd9d8;
  background: white;
  padding: 0 16px;
  border-radius: 15px;
  box-shadow: 0 10px 35px #0b24220a;
}

.faq-search-wrap > span {
  font-size: 24px;
  color: #178f85;
}

.faq-search-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 16px 0;
  font: inherit;
  font-size: 14px;
  min-width: 0;
}

.faq-search-wrap kbd {
  font: inherit;
  font-size: 11px;
  color: #81939a;
  background: #f1f5f4;
  padding: 4px 8px;
  border-radius: 7px;
}

.faq-result-count {
  font-size: 12px;
  color: #82919b;
  margin: 18px 0 10px;
}

.faq-full-list {
  border-top: 1px solid #d9e3e3;
}

.faq-full-list .faq-item[hidden] {
  display: none;
}

.faq-full-list details p {
  max-width: 760px;
}

.faq-no-results {
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  color: #64747e;
}

.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: #e5f2ef;
  color: #3c625e;
  font-size: 14px;
}

.faq-contact a {
  color: #0c8178;
  font-weight: 800;
}

.faq-contact a span {
  font-size: 18px;
  margin-right: 6px;
}

.faq-view-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 12px 17px;
  border-radius: 12px;
  background: #0d8f83;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.2s, background 0.2s;
}

.faq-view-all:hover {
  transform: translateY(-2px);
  background: #08776e;
}

.faq-view-all span {
  font-size: 17px;
}

/* ------------------------------------------------------------
   6. CONTACT SECTION
   ------------------------------------------------------------ */
.contact-section {
  scroll-margin-top: 82px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 0 0 12px;
  line-height: 1.35;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  color: #0b8f83;
  font-weight: 800;
  direction: ltr;
}

.contact-email span {
  font-size: 18px;
}

.contact-form {
  padding: 30px;
  border: 1px solid #d8e5e3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px #0b28230b;
}

.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-bottom: 20px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 750;
  color: #31464f;
}

.contact-form .field-full {
  grid-column: 1 / -1;
}

.form-control {
  width: 100%;
  border: 1px solid #d5e1df;
  border-radius: 11px;
  padding: 12px 13px;
  background: #fbfdfd;
  color: #0b1c2c;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: #20a99c;
  box-shadow: 0 0 0 3px #39c9b21c;
}

.form-control::placeholder {
  color: #9baab0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 11px;
  color: #83939a;
  margin: 12px 0 0;
  line-height: 1.7;
}

.form-hint[data-state="ready"] {
  color: #14867b;
  font-weight: 700;
}

/* ------------------------------------------------------------
   7. FOOTER APP DOWNLOAD & LEGAL NAV
   ------------------------------------------------------------ */
.footer-grid {
  grid-template-columns: 1.35fr 1fr 1.2fr;
  align-items: start;
}

.footer-contact .footer-links {
  margin-bottom: 19px;
}

.footer-app {
  padding-top: 16px;
  border-top: 1px solid #ffffff16;
}

.footer-app-title {
  font-size: 14px;
  font-weight: 800;
  color: #f0f7f8;
  margin-bottom: 13px;
}

.footer-app-title span {
  font-size: 11px;
  color: #8da4ae;
  font-weight: 700;
}

.app-badges {
  display: flex;
  direction: ltr;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.store-badge {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 126px;
  min-height: 39px;
  padding: 5px 9px;
  border: 1px solid #53606a;
  border-radius: 7px;
  background: #050608;
  color: #fff;
  text-align: left;
  line-height: 1;
  box-shadow: 0 2px 5px #0003;
}

.store-badge svg {
  width: 19px;
  height: 22px;
  flex: 0 0 auto;
}

.store-badge span {
  display: grid;
  gap: 3px;
}

.store-badge small {
  font: 400 7px/1.1 Arial, sans-serif;
  letter-spacing: 0.1px;
  color: #e0e3e5;
}

.store-badge strong {
  font: 700 12px/1.1 Arial, sans-serif;
  white-space: nowrap;
  color: #fff;
}

.copyright .legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #718894;
}

.copyright .legal-links a {
  color: #a8bbc2;
  transition: color 0.2s;
}

.copyright .legal-links a:hover {
  color: var(--teal);
}

/* ------------------------------------------------------------
   8. LEGAL / POLICY PAGES
   ------------------------------------------------------------ */
.legal-hero {
  min-height: 330px;
  padding-top: 142px;
  padding-bottom: 62px;
}

.legal-hero .page-title {
  font-size: clamp(34px, 4.8vw, 58px);
  margin: 15px 0 12px;
}

.legal-hero .hero-copy {
  font-size: 14px;
  color: #b8c9cf;
}

.legal-section {
  padding-top: 44px;
}

.legal-container {
  max-width: 1040px;
}

.legal-toc {
  margin-bottom: 22px;
  padding: 17px 21px;
  border: 1px solid #d9e4e2;
  border-radius: 16px;
  background: #fff;
  color: #20353f;
}

.legal-toc summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: #087e75;
}

.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 17px 0 0;
  padding: 0 22px 0 0;
}

.legal-toc a {
  color: #52676f;
  font-size: 13px;
  line-height: 1.7;
}

.legal-toc a:hover {
  color: #0a8f84;
}

.legal-document {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid #e0e8e7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px #0a32300a;
  color: #394b54;
}

.legal-document h2 {
  margin: 36px 0 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5edeb;
  color: #0d2632;
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.7;
  scroll-margin-top: 100px;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 25px 0 10px;
  color: #126e68;
  font-size: 18px;
  line-height: 1.8;
  scroll-margin-top: 100px;
}

.legal-document p,
.legal-document li {
  font-size: 14px;
  line-height: 2.05;
}

.legal-document p {
  margin: 0 0 14px;
}

.legal-document p strong {
  color: #1d3039;
}

.legal-document a {
  color: #078b80;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-document .legal-list {
  margin: 0 0 16px;
  padding: 0 27px 0 0;
}

.legal-document .legal-list li {
  padding-right: 4px;
  margin: 0 0 5px;
}

.legal-document .legal-list[data-level="1"] {
  margin-right: 17px;
}

.legal-document .legal-list[data-level="2"] {
  margin-right: 30px;
}