.pp-terms-modal {
border: none;
padding: 0;
margin: 0;
background: transparent;
max-width: none;
max-height: none;
width: 100%;
height: 100%;
}
.pp-terms-modal[open] {
display: flex;
align-items: center;
justify-content: center;
}
.pp-terms-modal::backdrop {
background: rgba(15, 23, 42, 0.55);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.pp-terms-modal__inner {
background: #ffffff;
border-radius: 16px;
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
width: 90%;
max-width: 720px;
max-height: 85vh;
display: flex;
flex-direction: column;
overflow: hidden;
animation: pp-terms-modal-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pp-terms-modal-enter {
from { opacity: 0; transform: translateY(20px) scale(0.97); }
to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pp-terms-modal__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 20px;
border-bottom: 1px solid #e5e7eb;
background: #f8fafc;
}
.pp-terms-modal__title {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: #0f172a;
line-height: 1.3;
font-family: var(--font-heading, system-ui, sans-serif);
}
.pp-terms-modal__close {
background: transparent;
border: 0;
padding: 8px;
width: 44px;
height: 44px;
min-width: 44px;
display: flex;
align-items: center;
justify-content: center;
color: #475569;
cursor: pointer;
border-radius: 8px;
transition: all 0.18s ease;
}
.pp-terms-modal__close:hover,
.pp-terms-modal__close:focus-visible {
background: rgba(15, 23, 42, 0.08);
color: #0f172a;
outline: none;
}
.pp-terms-modal__close:focus-visible {
box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}
.pp-terms-modal__body {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 20px 24px;
font-size: 0.92rem;
color: #334155;
line-height: 1.6;
}
.pp-terms-modal__body h1,
.pp-terms-modal__body h2,
.pp-terms-modal__body h3 {
color: #0f172a;
margin-top: 1.5em;
margin-bottom: 0.5em;
font-weight: 700;
line-height: 1.3;
}
.pp-terms-modal__body h1 { font-size: 1.35rem; }
.pp-terms-modal__body h2 { font-size: 1.15rem; }
.pp-terms-modal__body h3 { font-size: 1.0rem; }
.pp-terms-modal__body h1:first-child,
.pp-terms-modal__body h2:first-child {
margin-top: 0;
}
.pp-terms-modal__body p { margin: 0 0 1em; }
.pp-terms-modal__body ul,
.pp-terms-modal__body ol { margin: 0 0 1em; padding-left: 1.5em; }
.pp-terms-modal__body li { margin-bottom: 0.4em; }
.pp-terms-modal__body a {
color: #059669;
text-decoration: underline;
text-underline-offset: 2px;
}
.pp-terms-modal__body a:hover { color: #047857; }
.pp-terms-modal__body strong { color: #0f172a; }
.pp-terms-modal__loading {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 60px 20px;
color: #64748b;
font-size: 0.95rem;
}
.pp-terms-modal__spinner {
width: 18px;
height: 18px;
border: 2px solid rgba(5, 150, 105, 0.2);
border-top-color: #059669;
border-radius: 50%;
animation: pp-terms-spin 700ms linear infinite;
}
@keyframes pp-terms-spin {
to { transform: rotate(360deg); }
}
.pp-terms-modal__footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
border-top: 1px solid #e5e7eb;
background: #f8fafc;
gap: 12px;
}
.pp-terms-modal__external {
color: #475569;
font-size: 0.82rem;
text-decoration: none;
font-weight: 500;
}
.pp-terms-modal__external:hover {
color: #059669;
text-decoration: underline;
}
.pp-terms-modal__close-btn {
background: #059669;
color: #ffffff;
border: 0;
padding: 10px 20px;
border-radius: 8px;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
transition: background 0.18s ease, transform 0.1s ease;
min-height: 44px;
}
.pp-terms-modal__close-btn:hover {
background: #047857;
}
.pp-terms-modal__close-btn:active {
transform: scale(0.97);
}
.pp-terms-modal__close-btn:focus-visible {
outline: none;
box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.35);
} html.pp-terms-modal-open,
html.pp-terms-modal-open body {
overflow: hidden;
} @media (max-width: 640px) {
.pp-terms-modal__inner {
width: 100%;
max-width: none;
max-height: 100vh;
height: 100vh;
border-radius: 0;
animation-name: pp-terms-modal-enter-mobile;
}
@keyframes pp-terms-modal-enter-mobile {
from { opacity: 0; transform: translateY(40px); }
to   { opacity: 1; transform: translateY(0); }
}
.pp-terms-modal__header {
padding: 14px 16px;
position: sticky;
top: 0;
z-index: 2;
}
.pp-terms-modal__title {
font-size: 1rem;
}
.pp-terms-modal__body {
padding: 16px 18px;
}
.pp-terms-modal__footer {
padding: 12px 16px;
position: sticky;
bottom: 0;
flex-direction: row-reverse;
}
.pp-terms-modal__external {
font-size: 0.78rem;
}
} @media (prefers-reduced-motion: reduce) {
.pp-terms-modal__inner,
.pp-terms-modal__inner * {
animation: none !important;
}
}