/* PNGTuber.app - shared stylesheet for the public info pages
 * (How To, Terms & Conditions, Privacy Policy). Self-contained so these
 * pages do not depend on landing.css.
 */

:root {
  --bg: #22262c;
  --panel: #2a2f37;
  --panel-2: #313741;
  --line: #363c46;
  --text: #b45ade;
  --muted: #80f7f9;
  --muted-fade: #369395;
  --accent: #b45ade;
  --accent-ink: #1a1020;
  --highlight: #67d5da;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--highlight);
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ------------------------------------------------------------- header --- */

.hero-help {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-color: var(--bg);
}

.hero-help a {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-logo {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: clamp(200px, 26vw, 300px);
  height: auto;
}

.hero-help-inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  text-align: center;
}

.hero-help h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, var(--muted-fade), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------- documents --- */

.cta-band {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), #262b32);
  margin-bottom: 30px;
}

.cta-band.doc {
  text-align: left;
  color: var(--muted-fade);
}

.doc h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--text);
}

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

.doc h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.02rem;
  color: var(--muted);
}

.doc p {
  margin: 0 0 1rem;
}

.doc ul,
.doc ol {
  margin: 0 0 1rem 1.35rem;
  padding: 0;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc a {
  color: var(--highlight);
}

.doc a:hover {
  color: var(--muted);
}

.doc code,
code {
  font-family: "courier new", monospace;
  font-weight: 700;
  color: var(--text);
}

.SiteName {
  color: var(--text);
  font-weight: 900;
}

.legal-updated {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted-fade);
  opacity: 0.85;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th {
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
}

/** FAQ - Details And Summary **/


details {
    border: 1px solid var(--muted);
    border-radius: 5px;
    padding: 0.5em;
    margin: 1em 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* Change background when open */
details[open] {
    background-color: var(--bg);
}

summary {

    font-size:1.25em;
    font-weight: bold;
    color: var(--text);
  /* Pin the custom marker to the container */
  position: relative;
  /* Register summary as an anchor element */
  anchor-name: --summary;
  &::marker {
    content: "";
  }
  
  &::before,
  &::after {
    /* Custom marker dimensions */
    content: "";
    border-block-start: 3px solid var(--muted-fade);
    height: 0;
    width: 1rem;
    
    /* Positions the lines */
    inset-block-start: 50%;
    inset-inline-end: 0;
    
    /* Anchor the shape to the summary */
    position: absolute;
    position-anchor: --summary;
    position-area: top end;
  }
  
  /* Rotate just the ::after line to create a "+"" shape */
  &::after {
    transform: rotate(90deg);
    transform-origin: 50%;
  }
}

/* Rotate the line when open */
details[open] summary::after {
  transform: rotate(0deg);
}


/* Hover effect for summary */
summary:hover {
    color: var(--muted-fade);
}

/* Content inside details */
details p {
    margin: 0.5em 0 0;
    line-height: 1.4;
}


/* ------------------------------------------------------------- footer --- */

footer.site {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-fade);
  font-size: 0.9rem;
}

footer.site .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

footer.site a {
  color: #733391;
  text-decoration: none;
}

footer.site a:hover {
  color: var(--highlight);
}

@media (max-width: 720px) {
  .legal-table {
    font-size: 0.85rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.45rem 0.5rem;
  }
}
