/* Shared PPUTROLL footer: tool directory, policy links, and clear hosting/privacy status. */
.pputroll-site-footer {
  --psf-ink: #f4fbfd;
  --psf-muted: #a9c2cc;
  --psf-faint: #7897a4;
  --psf-line: rgba(184, 226, 219, 0.17);
  --psf-panel: rgba(255, 255, 255, 0.055);
  --psf-panel-hover: rgba(255, 255, 255, 0.09);
  --psf-mint: #9ee0d2;
  --psf-sky: #8bd5ef;
  position: relative;
  isolation: isolate;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(42px, 5vw, 66px) max(20px, calc((100vw - 1220px) / 2)) 28px;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(139, 213, 239, 0.24);
  background:
    radial-gradient(circle at 6% 4%, rgba(92, 190, 199, 0.2), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(73, 151, 193, 0.22), transparent 31%),
    linear-gradient(145deg, #0b303e 0%, #082631 48%, #061e28 100%);
  color: var(--psf-ink);
  font-family: "Pretendard Variable", Pretendard, SUIT, "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  text-align: left;
}

.pputroll-site-footer::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 224, 210, 0.72), rgba(139, 213, 239, 0.8), transparent);
  content: "";
}

.pputroll-site-footer::after {
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(158, 224, 210, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 54px rgba(158, 224, 210, 0.025), 0 0 0 112px rgba(139, 213, 239, 0.018);
}

.pputroll-site-footer *,
.pputroll-site-footer *::before,
.pputroll-site-footer *::after {
  box-sizing: border-box;
}

.pputroll-site-footer a {
  color: inherit !important;
  text-decoration: none !important;
}

.pputroll-site-footer a:focus-visible {
  outline: 3px solid #b5edff;
  outline-offset: 4px;
}

.psf-shell {
  width: min(1220px, 100%);
  max-width: 1220px !important;
  margin: 0 auto !important;
}

.psf-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.psf-intro {
  min-width: 0;
}

.psf-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-radius: 10px;
}

.psf-brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(179, 226, 235, 0.23);
  border-radius: 13px;
  background: rgba(244, 251, 253, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.psf-brand__mark img {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.psf-brand__copy {
  display: grid;
  gap: 3px;
  color: var(--psf-ink) !important;
}

.psf-brand__copy strong {
  color: var(--psf-ink) !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.psf-brand__copy small {
  color: var(--psf-muted) !important;
  font: 700 8px/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.17em;
}

.pputroll-site-footer .psf-intro > p {
  max-width: 320px;
  margin: 17px 0 0;
  color: var(--psf-muted) !important;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.7;
}

.psf-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.psf-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--psf-line);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.psf-status__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 192, 123, 0.24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 178, 91, 0.2), rgba(243, 124, 47, 0.09));
  color: #ffc078 !important;
  font: 900 11px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: -0.03em;
}

.psf-status__icon--local {
  border-color: rgba(158, 224, 210, 0.24);
  background: linear-gradient(145deg, rgba(158, 224, 210, 0.2), rgba(91, 181, 175, 0.08));
  color: var(--psf-mint) !important;
  font-size: 7px;
  letter-spacing: 0.06em;
}

.psf-status > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pputroll-site-footer .psf-status small {
  color: var(--psf-faint) !important;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pputroll-site-footer .psf-status strong {
  color: var(--psf-ink) !important;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.pputroll-site-footer .psf-status em {
  color: var(--psf-muted) !important;
  overflow-wrap: anywhere;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.psf-directory {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 30px;
  margin-top: clamp(34px, 5vw, 52px);
  padding: 28px 0;
  border-top: 1px solid var(--psf-line);
  border-bottom: 1px solid var(--psf-line);
}

.psf-nav {
  min-width: 0;
}

.pputroll-site-footer .psf-nav__label {
  margin: 0 0 12px;
  color: var(--psf-faint) !important;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.psf-tool-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pputroll-site-footer .psf-tool-link {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid var(--psf-line);
  border-radius: 13px;
  background: var(--psf-panel) !important;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.pputroll-site-footer .psf-tool-link:hover {
  border-color: rgba(139, 213, 239, 0.38);
  background: var(--psf-panel-hover) !important;
  transform: translateY(-1px);
}

.pputroll-site-footer .psf-tool-link.is-current {
  border-color: rgba(158, 224, 210, 0.42);
  background: linear-gradient(135deg, rgba(158, 224, 210, 0.13), rgba(139, 213, 239, 0.07)) !important;
  box-shadow: inset 3px 0 var(--psf-mint);
}

.psf-tool-link__number {
  color: var(--psf-mint) !important;
  font: 850 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
}

.psf-tool-link__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.pputroll-site-footer .psf-tool-link__copy strong {
  color: var(--psf-ink) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.pputroll-site-footer .psf-tool-link__copy small {
  color: var(--psf-muted) !important;
  overflow: hidden;
  font-size: 9px;
  font-weight: 520;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psf-current {
  padding: 5px 7px;
  border: 1px solid rgba(158, 224, 210, 0.25);
  border-radius: 99px;
  background: rgba(158, 224, 210, 0.1);
  color: var(--psf-mint) !important;
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
}

.psf-tool-link__arrow {
  color: var(--psf-sky) !important;
  font-size: 15px;
  transition: transform 160ms ease;
}

.psf-tool-link:hover .psf-tool-link__arrow {
  transform: translateX(2px);
}

.psf-policy-links {
  display: grid;
  gap: 10px;
}

.pputroll-site-footer .psf-policy-links a[href*="terms"],
.pputroll-site-footer .psf-policy-links a[href*="privacy"] {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  margin: 0 !important;
  padding: 10px 1px 11px;
  border: 0 !important;
  border-bottom: 1px solid var(--psf-line) !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--psf-ink) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 160ms ease, padding 160ms ease;
}

.pputroll-site-footer .psf-policy-links a[href*="terms"]:hover,
.pputroll-site-footer .psf-policy-links a[href*="privacy"]:hover {
  padding-right: 3px;
  padding-left: 3px;
  border-color: rgba(139, 213, 239, 0.44) !important;
  background: transparent !important;
  color: var(--psf-sky) !important;
}

.psf-policy-links a > span:last-child {
  color: var(--psf-sky) !important;
  font-size: 14px;
}

.psf-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 22px;
}

.pputroll-site-footer .psf-bottom p {
  max-width: 720px;
  margin: 0;
  color: var(--psf-faint) !important;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.65;
}

.pputroll-site-footer .psf-bottom > span {
  flex: 0 0 auto;
  color: var(--psf-faint) !important;
  font: 700 8px/1.65 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
}

/* The audio page previously styled every footer globally. Keep this component isolated. */
body.one-click-audio-ui footer.pputroll-site-footer {
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  padding: clamp(42px, 5vw, 66px) max(20px, calc((100vw - 1220px) / 2)) 28px !important;
  background:
    radial-gradient(circle at 6% 4%, rgba(92, 190, 199, 0.2), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(73, 151, 193, 0.22), transparent 31%),
    linear-gradient(145deg, #0b303e 0%, #082631 48%, #061e28 100%) !important;
  color: var(--psf-ink) !important;
}

@media (max-width: 900px) {
  .psf-summary {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .psf-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .pputroll-site-footer .psf-intro > p {
    max-width: 360px;
    margin: 0;
    text-align: right;
  }
}

@media (max-width: 720px) {
  .pputroll-site-footer,
  body.one-click-audio-ui footer.pputroll-site-footer {
    padding: 38px 18px 24px !important;
  }

  .psf-directory {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .psf-bottom {
    display: grid;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .psf-intro {
    display: grid;
    justify-items: start;
    gap: 15px;
  }

  .pputroll-site-footer .psf-intro > p {
    text-align: left;
  }

  .psf-status-grid,
  .psf-tool-links {
    grid-template-columns: 1fr;
  }

  .psf-status {
    min-height: 84px;
  }

  .pputroll-site-footer .psf-tool-link {
    min-height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pputroll-site-footer *,
  .pputroll-site-footer *::before,
  .pputroll-site-footer *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
